summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-06-05compositor-x11: Return number of events processedHEADmasterBill Spitzak1-1/+4
The event handler is supposed to return 0 if no events were handled and a positive number if events were handled. event always end up being NULL however, so we always return 0.
2012-06-05xwm: use override_redirect for determining or not top-level windowsTiago Vignatti1-5/+9
"top-level window is a window whose override-redirect attribute is False", ICCCM 4.1.1 Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2012-06-05xwayland: fix typo on configure libsTiago Vignatti1-1/+1
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2012-06-05xwm: Only destroy window frame in unmap_notify if we have oneKristian Høgsberg1-5/+7
Based on a patch from Tiago Vignatti <tiago.vignatti@intel.com>.
2012-06-05compositor: Remove left-over 'bright' shader uniformKristian Høgsberg1-1/+0
2012-06-05compositor: Drop brightness and saturation features in the shaderKristian Høgsberg2-15/+0
2012-06-05shell: Use a busy cursor animation for unresponsive surfacesKristian Høgsberg5-64/+190
2012-06-04window.c: Add primitive support for animated cursorsKristian Høgsberg2-5/+19
This just adds an entry point to set a specific frame of an animated cursor.
2012-06-04window.c: Set focus widget before calling enter handlerKristian Høgsberg1-1/+1
This way input_get_focus_widget() returns the right widget when called from the enter handler.
2012-06-04compositor: Set pointer->current before calling focus handlerKristian Høgsberg1-1/+1
The grab interface handlers all expect pointer->current to identify the surface under the pointer regardless of grabs etc. Thus, we need to set it before calling the focus handler.
2012-06-04window.c: Add watch cursorKristian Høgsberg2-0/+2
2012-06-04window.c: Drop timestamp argument to input_set_pointer_image()Kristian Høgsberg3-9/+8
We need the serial to set a pointer image and we track that internally.
2012-06-04Remove Intel from text-cursor-position.c copyright header.Scott Moreau1-1/+0
2012-06-04Drop user input detection from text cursor position implementation.Scott Moreau1-8/+1
2012-06-04Convert text cursor position protocol to use fixed types.Scott Moreau5-16/+20
2012-06-04Fix inverted LEDsDaniel Stone1-1/+1
Turns out it's probably better to post the new state rather than the old. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-04Fix sessions with no active input devicesDaniel Stone1-2/+7
Fix a few unconditional dereferences of seat->keyboard and seat->pointer in paths that could be hit outside of input event processing. Reported-by: Pekka Paalanen <ppaalanen@gmail.com> Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-04compositor-wayland: Delay seat creationDaniel Stone1-19/+37
We'll get a rash of seats added when we run our first wl_display_iterate across the parent display, but won't actually be ready to create them. Create a new global listener on our parent display for wl_seats only, and run that from wayland_input_create. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-04xwm: Take WM_S0 manager selectionKristian Høgsberg2-0/+8
2012-06-04xwm: Claim the CLIPBOARD_MANAGER selectionKristian Høgsberg3-0/+16
2012-06-03compositor: Add a clipboard managerKristian Høgsberg4-0/+269
We use the selection signal to get a callback when somebody sets a selection (including the X server proxy) and then copy the contents of the first mime type. If the selection is cleared (when the client dies), we set a new selection with that contents.
2012-06-03xwm: Initialize X selection on X server startupKristian Høgsberg1-0/+2
This way an already existing wayland selection will be available on launch.
2012-06-03xwm: Move selection proxy setup to selection.cKristian Høgsberg3-27/+37
2012-06-03xwm: Follow wl_data_source changesKristian Høgsberg1-33/+27
Creating the wl_data_offer is now entirely inside libwayland-server.
2012-06-02terminal: Use serial, not timestamp for setting the selectionKristian Høgsberg1-1/+2
2012-06-01Add support for wl_keyboard::keymap eventsDaniel Stone5-50/+185
These keymap events communicate the keymap from the compositor to the clients via fd passing, rather than having the clients separately compile a map. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01Parse XKB config options in weston_compositor_initDaniel Stone1-16/+17
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01Pass config_file through to weston_compositor_initDaniel Stone6-23/+34
This allows us to do config parsing there. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01Pass argc and argv through to weston_compositor_initDaniel Stone6-14/+23
Allowing it to do option parsing as well. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01compositor-x11: Generate our own keymapDaniel Stone1-40/+51
Instead of mangling the names we've stored in the compositor, generate our own keymap and pass that to weston_seat_init_keyboard. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01compositor-wayland: Fix seat vs. seat confusionDaniel Stone1-2/+2
We were accidentally trying to initialise the wl_seat we just got from our host server as a weston_seat, rather than the weston_seat we set up earlier ... Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01Brown-paper bag fix for LEDDaniel Stone1-2/+5
The O_RDWR change got lost in a rebase, and as Peter suggested as well, make sure to set EVDEV_KEYBOARD if the device has EV_LED. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01Fix binding modifier lookupDaniel Stone1-3/+3
Whoops, lost half of the shuffling around of masks and indexes. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-06-01build: introduce GCC_CXXFLAGSPekka Paalanen2-5/+7
The patch "compositor-android: fix build flags" started using GCC_CFLAGS for C++ files, too. That lead to the following warnings when building a C++ file: cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++ Introduce GCC_CXXFLAGS, similar to GCC_CFLAGS, but for C++, avoiding the problematic compiler flags. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-06-01compositor-android: fix build flagsPekka Paalanen1-0/+1
When adding a C++ file to the build, I forgot to set CXXFLAGS for it, triggering the error: android-framebuffer.h:26:21: fatal error: EGL/egl.h: No such file or directory I never hit this, because I have EGL headers installed also in my system, rather than only in $prefix. Fix this by setting the CXXFLAGS for the android backend. Reported-by: Scott Moreau <oreaus@gmail.com> Reported-by: Tiago Vignatti <tiago.vignatti@intel.com> Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-06-01xwayland: Handle selection source going away without crashingKristian Høgsberg3-3/+28
2012-05-31window.c: Handle losing selection data sourceKristian Høgsberg1-1/+5
2012-05-31Add keymap argument to weston_seat_init_keyboardDaniel Stone5-44/+56
This allows backends to generate their own keymaps and pass them in for use rather than always forcing a single global keymap, which is particularly useful for nested compositors. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Move keymaps to weston_seatDaniel Stone2-30/+35
In practice this doesn't mean much right now, since they all just take an extra reference on the global keymap. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Separate out weston_xkb_info structDaniel Stone3-34/+41
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Split XKB keymap compilation out into separate functionDaniel Stone1-20/+33
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Split weston_seat_init up into pointer/keyboard/touchDaniel Stone5-3/+59
So we don't unnecessarily advertise interfaces the seat doesn't support. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31clients: Move XKB info from display to input structDaniel Stone1-64/+66
As it does (will) vary per-seat. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Convert wl_pointer::axis to wl_fixed_tDaniel Stone5-6/+6
To go with the matching protocol change. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Use wl_fixed_t for axis bindingsDaniel Stone4-8/+9
In preparation for axis values being wl_fixed_t in the protocol as well. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Split bindings into separate key/button/axis bindingsDaniel Stone7-151/+265
Rather than attempting to have the one handler prototype everywhere. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31Convert notify_axis to wl_fixed_tDaniel Stone5-12/+20
In preparation for the rest of the axis code changing. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31shell: Reset focus for all seats on activationDaniel Stone1-3/+5
Rather than using a single hardcoded seat to activate new windows within a compositor, reset the focus for all seats. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31tablet-shell: Use seat_list rather than primary seatDaniel Stone1-9/+8
Activate surfaces for all seats when showing the grid, not just the primary seat. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31tablet-shell: Remove 'seat' memberDaniel Stone1-3/+0
Signed-off-by: Daniel Stone <daniel@fooishbar.org>