summaryrefslogtreecommitdiff
path: root/clients
AgeCommit message (Collapse)AuthorFilesLines
2012-05-29dnd: implement option for not offering data to other clientsAnder Conselvan de Oliveira2-27/+82
Add option --self-only to dnd client. If this options is passed, the drag will be started with no data source so that no drag and drop events are sent to other clients.
2012-05-29terminal: add glyphs to character listDavid Herrmann1-32/+32
This adds the actual glyphs/utf-8 characters to the comments of CS_SPECIAL (DEC special graphics set). They all work on my system with "Monospace" or "Bitstream" font. But keep the mnemonics so if the UTF8 characters are not displayed correctly, the comments are still readable. I don't know if gcc actually reads data as UTF-8 or if C code actually allows all UTF8 characters. However, unless it reads as "*/" in ASCII, it shouldn't matter inside of comments. Anyway, it compiles fine with gcc-4.7.0/amd64 here. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-05-29terminal: fix up horizontal scan-line charactersDavid Herrmann1-5/+5
The DEC special graphics set defines entries 0x6f to 0x73 to be: Horizontal Scan Line 1 Horizontal Scan Line 3 Horizontal Scan Line 5 Horizontal Scan Line 7 Horizontal Scan Line 9 However, the first Unicode drafts included only Scan-Line 5. Since Unicode-3.2 the other Scan-Lines were added and are available in most Unicode fonts now. The codes are listed here: http://www.fileformat.info/info/unicode/block/miscellaneous_technical/images.htm?start=9089 Or more precisely: Scan 1: http://www.fileformat.info/info/unicode/char/23ba/index.htm Scan 3: http://www.fileformat.info/info/unicode/char/23bb/index.htm Scan 7: http://www.fileformat.info/info/unicode/char/23bc/index.htm Scan 9: http://www.fileformat.info/info/unicode/char/23bd/index.htm Scan 5 is kept the same as before as it wasn't added separately and was already correct before. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
2012-05-29Weston: Free allocated cursors array when destroyingYan Wang1-0/+1
This array is allocated in create_cursors(). It should be freed in destroy_cursors().
2012-05-25dnd: work around cairo-gl brokennessAnder Conselvan de Oliveira3-3/+6
If cairo-gl is used, display_create_surface() will create an wl_egl_window for each surface and this will result in errors if this surface is used as a source. Also, one can't get a wl_buffer for such a surface wich led to crashes when trying to do so for the drag icon. This patch works around both problems by forcing the item and drag icon surfaces to use shm.
2012-05-25window: rename enum pointer_type to cursor_typeAnder Conselvan de Oliveira10-45/+45
This avoids confusion with the pointer devices (struct wl_pointer).
2012-05-25window: track changes in libwayland-cursor apiAnder Conselvan de Oliveira9-43/+73
libwayland-cursor does not provide enum wl_cursor_type anymore so this brings back enum pointer_type. This partially revers commit 1042dc15e0ca69a4d8d4d23b862f1e3d3c8e054f.
2012-05-25clients: desktop-shell: show tooltip for panel itemsTiago Vignatti1-0/+15
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2012-05-25window: add simple text tooltip handlersTiago Vignatti2-0/+195
Using set_transient. Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2012-05-22Share code to to classify pointer location in frameKristian Høgsberg1-62/+27
2012-05-22window: use libwayland-cursor instead of libXcursorAnder Conselvan de Oliveira10-232/+64
2012-05-21window: send transient flags over the wireTiago Vignatti2-3/+3
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2012-05-16simple-egl: Fix crash and simplifyKristian Høgsberg1-30/+12
pointer_handle_enter() expects the struct display as the user data, so just move wl_seat and wl_pointer into struct display.
2012-05-16Convert wl_input_device to wl_seat (and friends)Daniel Stone4-281/+175
wl_input_device has been both renamed and split. wl_seat is now a virtual object representing a group of logically related input devices with related focus. It now only generates one event: to let clients know that it has new capabilities. It takes requests which hand back objects for the wl_pointer, wl_keyboard and wl_touch interfaces it exposes which all provide the old input interface, just under different names. This commit tracks these changes in weston and the clients, as well as similar renames (e.g. weston_input_device -> weston_seat). Some other changes were necessary, e.g. renaming the name for the visible mouse sprite from 'pointer' to 'cursor' so as to not conflict. For simplicity, every seat is always exposed with all three interfaces, although this will change as time goes on. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-15Rename libconfig-parser to libsharedKristian Høgsberg1-5/+3
Still a bad name.
2012-05-15Move cairo-util to shared/Kristian Høgsberg8-505/+6
2012-05-15window: Move frame rendering to cairo-utilKristian Høgsberg3-61/+83
2012-05-15window: Move theme rendering code to cairo-utilKristian Høgsberg3-62/+67
2012-05-15window: Move all frame theme related state into new struct themeKristian Høgsberg1-54/+69
2012-05-15window: Compute title vertical position based on font extentsKristian Høgsberg1-1/+7
We just fudged it before.
2012-05-15window: Store the outputs that the window is onRob Bradford1-2/+51
Using the surface enter/leave events track which outputs the window is on and store those in a "window_output_list" on the window. To create this list we define a struct window_output that is the list relationship between the window and the output.
2012-05-14toytoolkit: Recalculate input region if client has modified it's size.Scott Moreau1-10/+11
If a client changes it's width/height values in it's widget resize handler, the input region will be wrong because of the assumptions toytoolkit makes in frame_resize_handler(). So far, gears is the only client that does this.
2012-05-14window: fix missed xkb API adaptationPekka Paalanen1-1/+1
Oddly enough, this failed to build on Android, but not otherwise. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-05-14simple-shm: Handle ping event.Scott Moreau1-0/+28
Since simple-shm does not use toytoolkit, it needs to respond to ping events so it is not deemed unresponsive.
2012-05-11clients: Remove superfluous #includesKristian Høgsberg6-12/+0
In particular window.c and many clients were including glib.h without using it and without the right cflags.
2012-05-11Update to new libxkbcommon APIKristian Høgsberg4-73/+64
We no longer depend on xproto, we use xkbcommon keycodes now. Yay!
2012-05-10resizor: More resizingKristian Høgsberg1-47/+87
Interacts better with interactive resizing, left/right keys now changes window width.
2012-05-10simple-egl: Add option -o to make surface opaqueKristian Høgsberg1-3/+12
2012-05-10clients: Add motion event trails to clickdotJonas Ådahl1-5/+138
Useful for testing pointer device. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-10window.c: frame_button: Maximize, minimize, close, icon buttons in window frameMartin Minarik1-3/+253
2012-05-10window.c: Just use float instead of GLfloat, remove GLES2.h includeKristian Høgsberg10-32/+31
2012-05-09window: Don't crash if a cursor image failed to load.Dima Ryazanov1-2/+9
Signed-off-by: Dima Ryazanov <dima@gmail.com>
2012-05-08window: fix check of cursor image load resultRafal Mielniczuk1-2/+2
2012-05-08Port Wayland clients to new xkbcommon APIKristian Høgsberg3-38/+79
A little different from Daniels initial patch. We look up the common modifiers at xkb init time and convert the xkb serialized modifier mask to our own modifier bitmask.
2012-05-08Convert wire input co-ordinates to fixed-pointDaniel Stone2-10/+31
To add greater precision when working with transformed surfaces and/or high-resolution input devices. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-08Convert internal input co-ordinates to GLfloatDaniel Stone9-20/+21
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-07window: use only one shm pool for all the cursor imagesAnder Conselvan de Oliveira1-35/+164
Cursor images are fairly small and having one pool for each image adds a lot of unnecessary overhead. Instead, create one large pool and allocated all cursor images from that. In order to do that, however, the code that creates shm surface needed some refactoring. This patch adds a new struct shm_pool that is used by the cursor and also changes struct window to use it.
2012-05-07Change button from int to uint32_tDaniel Stone12-15/+15
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 Stone12-15/+16
'state' here meaning 'is it up or down?', obviously. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-03window: use libXcursor for loading pointer imagesAnder Conselvan de Oliveira1-95/+119
2012-05-02simple-egl: add option for running fullscreenAnder Conselvan de Oliveira1-6/+174
2012-05-02window: Set window title and classKristian Høgsberg1-0/+5
2012-04-27window: Only set toplevel window type if nothing else is setKristian Høgsberg1-5/+8
2012-04-26fix build for --disable-clients --enable-simple-clientsPekka Paalanen1-6/+9
Simple clients were relying on AM_CFLAGS and AM_CPPFLAGS set for toytoolkit clients. With toytoolkit clients disabled, the build fails with missing wayland-client.h. Move AM_CFLAGS and AM_CPPFLAGS outside of conditional sections, since they are meant to be global settings. Let simple clients override AM_CPPFLAGS with their own SIMPLE_CLIENT_CFLAGS, which the configure script already sets up for us, but was unused until now. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-26simple-shm: no need for wayland-egl.hPekka Paalanen1-1/+0
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-26simple-shm: handle shm buffer failurePekka Paalanen1-4/+13
Do not segfault, if creating the shm buffer fails. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-26simple-shm: render meaningful diagnosticsPekka Paalanen1-8/+43
Previously, simple-shm was rendering an image that looked like stride gone wrong somewhere, and was quite confusing if you did not know it was supposed to look like that. Replace the drawing code. Two circles, inner and outer, now delimit three co-centric areas. The outmost area from surface borders to outer circle contains horizontal gradients that move (animate) to the left. The area between outer and inner circles contains vertical gradients that move upwards. The center disc has circular gradients moving towards the center. The circles are not ellipses. Diagnostics: The X-channel is manipulated so, that if a compositor takes the XRGB image, and uses the X channel as alpha instead of ignoring it, the whole image will be crossed out by two lines that either quickly saturate to white or show through with additive blending. Does not work on black background. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-25gears: Allow model rotation with pointerScott Moreau1-4/+65
2012-04-20screenshooter: Don't assume output offsets start at zeroScott Moreau1-6/+32
2012-04-20screenshooter: Move buffer assembly to client sideScott Moreau1-13/+31