summaryrefslogtreecommitdiff
path: root/clients/smoke.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-16Add touch support for wl_shell_surface_moveRusty Lynch1-2/+2
2013-08-12smoke: Add touch support to smoke exampleRusty Lynch1-5/+18
2013-08-06Drop extraneous duplicate header includesBryce Harrington1-1/+0
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-02-20Pass argc pointer to parse_options()Kristian Høgsberg1-1/+1
This lets us keep argc up to date as the backend picks out arguments from the argv array.
2012-11-08smoke: Remove unused offset memberDaniel Stone1-2/+1
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-10-10compositor, clients: make damage double-bufferedPekka Paalanen1-0/+1
This change depends on the Wayland commit "protocol: double-buffered state for wl_surface". Implement double-buffering of damage in the compositor as required by the new protocol. Ensure all Weston demo clients call wl_surface_commit() after wl_surface_damage(). Mesa does not need a fix for this, as the patch adding wl_surface_commit() call to Mesa already takes care of damage, too; Mesa commit: "wayland: use wl_surface_commit()" Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
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-03-26Simplify shm buffer handlingKristian Høgsberg1-2/+0
There was a lot of code here to do a lot of work we didn't need to do. If we damage a surface with a shm buffer attached, all we need to do is to re-upload the damaged region to the texture. As for drm buffers, we don't assume anything changes on attach and only update the regions the client tells us to update in the damage request.
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-02-08smoke: Use normal window resize mechanismKristian Høgsberg1-23/+35
2012-02-08smoke: fix the segment fault errorJuan Zhao1-0/+12
Add widget_set_size in the initiate time to allow smoke get the correct surface later. Or it will report segment fault error because of the null surface. Also add resize_handler to not allow resizing just like flower. Signed-off-by: Juan Zhao <juan.j.zhao@linux.intel.com>
2012-01-31window: Dont take width and height in window constructorKristian Høgsberg1-1/+1
Always set this by scheduling an initial resize.
2012-01-10window: Make decorations just a widgetKristian Høgsberg1-1/+0
Woohoo, only took 25 commits of refactoring to get to this point.
2012-01-10window: Drop the window widgetKristian Høgsberg1-2/+3
It was just a temporary convenience for moving things over.
2012-01-09window: Create a widget for the window, drop window motion handlerKristian Høgsberg1-9/+7
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-08-29clients: Bring clients up to dateKristian Høgsberg1-8/+11
2011-04-22Implement buffer.damage in shm, use it in window.cBenjamin Franzke1-0/+2
2011-04-11Merge remote-tracking branch 'bnf/surface-frame-event'Kristian Høgsberg1-1/+3
Conflicts: compositor/compositor.c
2011-04-11Define global handler on display creationTim Wiederhake1-1/+1
Otherwise the initial announcement of interfaces gets lost.
2011-03-17Support per surface frame eventsBenjamin Franzke1-1/+3
This fixes tearing with multi head.
2011-01-23remove unused function in clients/smoke.c, silence warningTim Wiederhake1-17/+0
2011-01-21Add an orange pop-up menu to test the new map_transient requestKristian Høgsberg1-1/+2
2010-12-17Update surface.attach and change surface.map to surface.map_toplevelKristian Høgsberg1-2/+1
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-11-22Cleanup declared but unused variables.Bryce Harrington1-10/+4
Make was complaining about a bunch of unused variables that were being declared. Signed-off-by: Bryce Harrington <bryce@canonical.com>
2010-10-26Add small client for testing shm surfacesKristian Høgsberg1-0/+315