summaryrefslogtreecommitdiff
path: root/clients/flower.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-31Use enum wl_pointer_button_state instead of integerDaniel Stone1-4/+4
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>
2012-05-25window: rename enum pointer_type to cursor_typeAnder Conselvan de Oliveira1-1/+1
This avoids confusion with the pointer devices (struct wl_pointer).
2012-05-25window: track changes in libwayland-cursor apiAnder Conselvan de Oliveira1-2/+1
libwayland-cursor does not provide enum wl_cursor_type anymore so this brings back enum pointer_type. This partially revers commit 1042dc15e0ca69a4d8d4d23b862f1e3d3c8e054f.
2012-05-22window: use libwayland-cursor instead of libXcursorAnder Conselvan de Oliveira1-1/+2
2012-05-11clients: Remove superfluous #includesKristian Høgsberg1-3/+0
In particular window.c and many clients were including glib.h without using it and without the right cflags.
2012-05-10window.c: Just use float instead of GLfloat, remove GLES2.h includeKristian Høgsberg1-1/+1
2012-05-08Convert internal input co-ordinates to GLfloatDaniel Stone1-1/+1
Change all client motion handlers to take GLfloat for co-ordinates, rather than int32_t. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-07Change button from int to uint32_tDaniel Stone1-1/+1
Since you can't really have a negative button number. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-07Change key/button grab bindings to take unsigned stateDaniel Stone1-1/+1
'state' here meaning 'is it up or down?', obviously. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-04-11Follow wayland change to serial numbersKristian Høgsberg1-1/+2
2012-03-12Add an option parserKristian Høgsberg1-1/+1
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.
2012-01-31window: Dont take width and height in window constructorKristian Høgsberg1-2/+2
Always set this by scheduling an initial resize.
2012-01-31flower: Dont allow resizingKristian Høgsberg1-0/+11
2012-01-31flower: Redraw flower on middle click, pop up window menu on right clickKristian Høgsberg1-2/+15
2012-01-10window: Make decorations just a widgetKristian Høgsberg1-2/+0
Woohoo, only took 25 commits of refactoring to get to this point.
2012-01-10window: Make resize and redraw handlers widget vfuncsKristian Høgsberg1-14/+21
2012-01-10window: Allocate and flush the window surface in window.cKristian Høgsberg1-1/+1
No need to push this to the toolkit users.
2012-01-10window: Drop the window widgetKristian Høgsberg1-12/+12
It was just a temporary convenience for moving things over.
2012-01-09window: Move button handler to widgetKristian Høgsberg1-2/+5
2012-01-09window: Create a widget for the window, drop window motion handlerKristian Høgsberg1-5/+4
2011-11-22Fix inconsistent #include stylePekka Paalanen1-1/+1
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-09-19window: Stop using glib mainloop in toy toolkitKristian Høgsberg1-1/+0
2011-08-29window.c: Drop global handler argumentKristian Høgsberg1-1/+1
We can just register a global handler directly on the wl_display now.
2011-04-11Define global handler on display creationTim Wiederhake1-1/+1
Otherwise the initial announcement of interfaces gets lost.
2011-02-07Port window.c to use wayland-eglKristian Høgsberg1-1/+1
2011-01-21Add an orange pop-up menu to test the new map_transient requestKristian Høgsberg1-2/+2
2010-12-17Update surface.attach and change surface.map to surface.map_toplevelKristian Høgsberg1-25/+27
The new map_toplevel() request no longer specifies a position and takes the size from the attached buffer. The attach request now takes a position relative to the top-left corner of the old buffer to let clients specify the relative position of the new buffer.
2010-11-22Make clients exit orderly when there is no connectionYuval Fledel1-0/+4
2010-10-26Add small client for testing shm surfacesKristian Høgsberg1-0/+1
2010-09-03Replace commit/ack/frame protocol with simpler sync and frame callbacksKristian Høgsberg1-7/+10
2010-08-30flower: Clear surfaceKristian Høgsberg1-0/+5
2010-06-25Set window user data using separate functionKristian Høgsberg1-1/+2
2010-06-08Send device name at connect timeKristian Høgsberg1-3/+0
2010-06-08Consolidate more code in clients/window.cKristian Høgsberg1-24/+3
2010-06-08Use cairo-gl in clientsKristian Høgsberg1-44/+23
2010-06-04Move clients to subdirectoryKristian Høgsberg1-0/+195