Martin Olsson
3b132e358f
Fix spelling errors
12 years ago
Philipp Brüschweiler
70cc73b8d8
eventdemo: add axis logging
...
https://bugs.freedesktop.org/show_bug.cgi?id=52453
12 years ago
Philipp Brüschweiler
a306a2691a
eventdemo: fix --no-border
...
This was broken by commit 29af3ebce6
12 years ago
Philipp Brüschweiler
850f504aa2
eventdemo: fix incorrect comments
12 years ago
Martin Olsson
c663b22c20
clients: Free resources on exit in eventdemo
13 years ago
Daniel Stone
c9785eacca
Use enum wl_keyboard_key_state instead of integer
...
Instead of using a uint32_t for state everywhere (except on the wire,
where that's still the call signature), use the new
wl_keyboard_key_state enum, and explicit comparisons.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
4dbadb1556
Use enum wl_pointer_button_state instead of integer
...
Instead of using a uint32_t for state everywhere (except on the wire,
where that's still the call signature), use the new
wl_pointer_button_state enum, and explicit comparisons.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Ander Conselvan de Oliveira
dc8c8fce72
window: rename enum pointer_type to cursor_type
...
This avoids confusion with the pointer devices (struct wl_pointer).
13 years ago
Ander Conselvan de Oliveira
d8f527c845
window: track changes in libwayland-cursor api
...
libwayland-cursor does not provide enum wl_cursor_type anymore so this
brings back enum pointer_type.
This partially revers commit 1042dc15e0
.
13 years ago
Ander Conselvan de Oliveira
1042dc15e0
window: use libwayland-cursor instead of libXcursor
13 years ago
Kristian Høgsberg
4c3dac9c66
clients: Remove superfluous #includes
...
In particular window.c and many clients were including glib.h without
using it and without the right cflags.
13 years ago
Kristian Høgsberg
80680c7b75
window.c: Just use float instead of GLfloat, remove GLES2.h include
13 years ago
Daniel Stone
b230a7ee58
Convert internal input co-ordinates to GLfloat
...
Change all client motion handlers to take GLfloat for co-ordinates,
rather than int32_t.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
5d66371743
Change button from int to uint32_t
...
Since you can't really have a negative button number.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
da5b93c8d7
Change key/button grab bindings to take unsigned state
...
'state' here meaning 'is it up or down?', obviously.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Kristian Høgsberg
875ab9e735
Add signedness warning flag and fix fallout
13 years ago
Kristian Høgsberg
bcacef19b0
Add an option parser
...
On one hand, getopt (in particular the -o suboption syntax) sucks on the
server side, and on the client side we would like to avoid the glib
dependency. We can roll out own option parser and solve both problems
and save a few lines of code total.
13 years ago
Kristian Høgsberg
009ac0a965
window: Dont take width and height in window constructor
...
Always set this by scheduling an initial resize.
13 years ago
Kristian Høgsberg
29af3ebce6
window: Make decorations just a widget
...
Woohoo, only took 25 commits of refactoring to get to this point.
13 years ago
Kristian Høgsberg
bb97700474
window: Get rid of the window child allocation concept
13 years ago
Kristian Høgsberg
b67e94b170
window: Make resize and redraw handlers widget vfuncs
13 years ago
Kristian Høgsberg
5d12990dbe
window: Allocate and flush the window surface in window.c
...
No need to push this to the toolkit users.
13 years ago
Kristian Høgsberg
75bc667a70
window: Drop the window widget
...
It was just a temporary convenience for moving things over.
13 years ago
Kristian Høgsberg
a8a0db3497
window: Move button handler to widget
13 years ago
Kristian Høgsberg
87a57bbd73
window: Create a widget for the window, drop window motion handler
13 years ago
Kristian Høgsberg
9de79a92a6
window.c: Drop global handler argument
...
We can just register a global handler directly on the wl_display now.
13 years ago
Tim Wiederhake
b4b67344f0
Define global handler on display creation
...
Otherwise the initial announcement of interfaces gets lost.
14 years ago
Tim Wiederhake
503ccca5c8
document the usage of libtoytoolkit
...
(krh: edited to follow window_create() API changes)
14 years ago