summaryrefslogtreecommitdiff
path: root/clients
Commit message (Collapse)AuthorAgeFilesLines
...
* desktop-shell: Fix black edges on scaled desktop patternBill Spitzak2014-05-091-0/+2
| | | | | | | | | | Filter sampling outside the source image can leak black into the edges of the desktop image. This is most easily seen by scaling the default tiled image with this weston.ini: # no background-image and no background-color background-type=scale-crop
* simple-touch: Handle multiple seats properlyAnder Conselvan de Oliveira2014-05-091-15/+33
| | | | | | | | | | | | If simple-touch ran on a compositor with multiple seats, and the first one happened to have the touch capability while the second one didn't, the handler for seat capabilities would destroy the wl_touch device it created on the first call for the first seat when it was called a again for the second seat that has not touch capabilities. Fix this problem by creating a separate struct for each seat. https://bugs.freedesktop.org/show_bug.cgi?id=78365
* clients: Initialize label in keyboard handling codeBryce W. Harrington2014-05-091-1/+1
| | | | | | | | | Quells warning: clients/keyboard.c: In function ‘keyboard_handle_key.isra.5’: clients/keyboard.c:556:11: warning: ‘label’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* window: Add a simple getenv to force SHM renderingJasper St. Pierre2014-04-301-2/+2
|
* window: Clean up buffer type choosingJasper St. Pierre2014-04-301-8/+12
| | | | | Extracting it to a function makes this cleaner and more understandable.
* window.c: Dismiss menu on touch up eventsKristian Høgsberg2014-04-291-0/+15
|
* window.c: Also grab touch events when grabbing inputKristian Høgsberg2014-04-291-3/+6
|
* window.c: Prevent key event delivery while a grab is activeKristian Høgsberg2014-04-291-0/+8
| | | | | | Ideally, we'll update the key event handling to deliver events to widgets, but in the meantime, just blocking key event delivery while a grab is active goes a long way.
* window.c: Update pointer focus when taking a grabKristian Høgsberg2014-04-291-0/+2
|
* terminal: Convert all *alloc's to x*alloc's.Bryce W. Harrington2014-04-291-3/+3
| | | | | | | This ensures the allocation results are checked for NULL (out of memory), and terminates the program in such a case. Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
* clients/window: Don't remove the touch listener on a frame eventNeil Roberts2014-04-251-3/+0
| | | | | | | | | It looks like the handler for frame events from the wl_touch interface for widgets may have been erroneously copied from the cancel handler so that it removes all handlers as they are processed. I don't think this makes much sense for the frame event. This was stopping the panel icons from being pushable with touch events when using libinput since commit 1679f232e541489e. All that commit does it make it start sending the frame events.
* desktop-shell: Only use default background if no background color is setKristian Høgsberg2014-04-211-3/+4
| | | | | | | | Previously we would only use the set background color if the background-image value was explicitly set to empty or a non-existing image. With this change, we only load the default background image if there's no configure background image or background color. In case of both an image and a color, the image takes precedence as before.
* weston-info: fix log message typoU. Artie Eoff2014-04-211-1/+1
| | | | Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* editor: Remove unused variablesKristian Høgsberg2014-04-211-6/+0
|
* editor: react on Enter, Tab, and Up-Down arrow keysManuel Bachmann2014-04-211-10/+87
| | | | | | | | | | | | The editor will now insert new lines and tabulations when pressing the corresponding keys on the virtual keyboard. The Up and Down arrows can be used to navigate through lines. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=77496 Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
* keyboard: add the missing symbols layout, fix arabic layoutManuel Bachmann2014-04-161-121/+159
| | | | | | | | | | | | | | The "symbols" modifier key of weston-keyboard is no longer inactive, but will provide an additionnal layout with numerals and special characters. Fix the Arabic keyboard, which was rendering out of the bounds, and now use the Arabic IBM PC keyboard as a reference for its standard and new symbols layouts. https://bugs.freedesktop.org/show_bug.cgi?id=71757 Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
* terminal: Don't try to render RLE used as a placeholderDaiki Ueno2014-04-081-0/+6
| | | | | | weston-terminal uses RLE (U+202B) as a placeholder of the right half of a double width character. However, not all fonts include this glyph and cairo renders it as .notdef (glyph index 0) in that case.
* window.c: Create xdg_surface up frontKristian Høgsberg2014-04-072-12/+18
| | | | | | Fixes initial fullscreen for calibrator. https://bugs.freedesktop.org/show_bug.cgi?id=76970
* Make sure config.h is included before any system headersAndrew Wedgbury2014-04-0719-0/+38
| | | | | | | | | | | | | | | There was an issue recently in screen-share.c where config.h was not being included, resulting in the wrong definition for off_t being used on 32 bit systems. I checked and I don't think this problem is happening elsewhere, but to help avoid this sort of problem in the future, I went through and made sure that config.h is included first whenever system headers are included. The config.h header should be included before any system headers, failing to do this can result in the wrong type sizes being defined on certain systems, e.g. off_t from sys/types.h Signed-off-by: Andrew Wedgbury <andrew.wedgbury@realvnc.com>
* nested: Disable cairo on the subsurfacesNeil Roberts2014-04-061-0/+2
| | | | | | | | | The subsurface widgets on the nested example aren't using Cairo to render so we should turn it off to prevent the toy toolkit from creating a redundant extra surface for it. This is particularly important since Mesa commit 6c9d6898fdfd7e2 because the surface that the toolkit tries to create is zero-sized and that patch prevents that from working. This was causing weston-nested to crash.
* toytoolkit: match parent surface type when adding a subsurfaceManuel Bachmann2014-04-062-0/+10
| | | | | | | | | | | | When adding a subsurface (to display a tooltip) in toytoolkit, we now get the parent window surface type (SHM or EGL) and define the new surface type as the same. This fixes crashes with tooltips in cases like having Cairo-EGL available but running the X11 compositor. Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
* weston-fullscreen: Add cursor drawing support and properly handle ↵Jason Ekstrand2014-04-021-4/+99
| | | | | | WL_FULLSCREEN_SHELL_CAPABILITY_CURSOR_PLANE Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* weston-fullscreen: Add wl_fullscreen_shell supportJason Ekstrand2014-04-021-12/+151
| | | | Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* toytoolkit: Don't crash if wl_data_device_manager is not presentJason Ekstrand2014-04-021-8/+16
| | | | | | | This is primaraly to get weston-fullscreen to run on compositors that lack copy-paste support. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* toytoolkit: Expose output make and modelJason Ekstrand2014-04-022-0/+28
| | | | Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* toytoolkit: Only require xdg_shell if the window is not customJason Ekstrand2014-04-021-1/+1
| | | | Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* simple-shm: Add wl_fullscreen_shell supportJason Ekstrand2014-04-021-5/+26
| | | | | | | | This makes simple-shm act like a very simple fullscreen shell client. This is the kind of interaction one would expect out of a boot splash screen or similar. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
* Check return value of wl_cursor functionsHardening2014-04-012-0/+14
| | | | | | This patch adds checks for themes and cursors returned by wl_cursor functions. Reviewed-by: Bryce Harrington <b.harrington@samsung.com>
* clients/scaler: add modes to test wl_scaler version 2Pekka Paalanen2014-04-011-17/+126
| | | | | | | | | | This allows to test the effect of setting only source rectangle or destination size, in addition to setting both. In weston-scaler -h output, add descriptions on what the result in each mode should look like. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* clients: Remove unused client-side resize tracking codeJasper St. Pierre2014-03-241-17/+4
|
* xdg-shell: Bump unstable version to 3Kristian Høgsberg2014-02-193-3/+3
|
* xdg-shell: Replace the set_* atrocity with a new approachJasper St. Pierre2014-02-193-154/+58
| | | | | | Rather than require that the client implement two methods for every state, simply have one global request, change_state, and one global event, request_change_state.
* xdg-shell: Rename focused_set / focused_unset to activated / deactivatedJasper St. Pierre2014-02-183-12/+12
| | | | To try and make the distinction between this event and keyboard focus.
* clients: Add delete handler for simple-shm / simple-eglJasper St. Pierre2014-02-182-2/+16
| | | | It seems this was forgotten in the port.
* clients: Add support for the minimize buttonJasper St. Pierre2014-02-182-2/+16
|
* Reorder the xdg_shell implementations to fit the spec'd orderJasper St. Pierre2014-02-181-12/+12
|
* window: Remove window_location enumJasper St. Pierre2014-02-181-18/+2
| | | | It's unused except for one easily-replaceable place.
* toytoolkit: avoid unnecessary redraws when focus changesEmilio Pozuelo Monfort2014-02-181-2/+0
| | | | | | | | | | Clients that need to be redrawn when the focus changes do that by listening to focus_changed and scheduling a redraw. This was causing unnecessary redraws in the clients, as could be easily seen by changing focus on weston-flower. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
* client: Fix shell unstable version checkKristian Høgsberg2014-02-113-3/+21
| | | | | | | | Use a static assert to catch mismatch between implementation and interface version. Fix window.c to not use XDG_SHELL_VERSION_CURRENT, which will fail to catch version mismatches. The implementation version must updated manually when the implementation is updated to use the new interface.
* xdg-shell: Move "ping" and "pong" to xdg_shell, not xdg_surfaceKristian Høgsberg2014-02-113-29/+33
| | | | | | | Responsivenes is a per-client thing so we move the ping/pong functionality to xdg_shell. Having this per-window was carries over from the EWMH protocol, where the WM has no other way to do this. In wayland, the compositor can directly ping the client that owns the surface.
* clients: Port simple-shm and simple-egl to xdg-shellKristian Høgsberg2014-02-072-53/+113
|
* Update .gitignoreJasper St. Pierre2014-02-071-33/+0
|
* xdg-shell: Add set_margin requestJasper St. Pierre2014-02-061-0/+22
| | | | | | This is used to figure out the size of "invisible" decorations, which we'll use to better know the visible extents of the surface, which we can use for constraining, titlebars, and more.
* xdg-shell: Add a "delete" eventJasper St. Pierre2014-02-061-12/+20
| | | | | | | This is equivalent to WM_DELETE_WINDOW request under X11, or equivalent to pressing the "close" button under CSD. Weston currently doesn't have a compositor-side way to close the window, so no new code is needed on its side.
* xdg-shell: Drop edges arg from xdg_surface configure eventKristian Høgsberg2014-02-051-3/+1
|
* window: Delay scheduled redraws if we start maximize or fullscreen protocolKristian Høgsberg2014-02-051-0/+37
| | | | | | | | | | | | | | | When we set the fullscreen flag, we have to wait for the corresponding configure event and then attach a buffer of that size to indicate that we've successfully gone fullscreen/maximized. Without this patch, we can schedule a redraw and go through with it after setting maximize/fullscreen and end up attaching a buffer of the wrong size. In practice, what happens is that pressing the maximize button triggers setting maximized, but also triggers a redraw to paint the maxmize button. Without this change, repainting the button triggers a repaint that attaches the same size buffer immediately. https://bugs.freedesktop.org/show_bug.cgi?id=71927
* terminal: Only reset title if we put the window size thereKristian Høgsberg2014-02-051-1/+6
| | | | | | When resizing the terminal, it shows the grid size in the titlebar. We reset the title next time we get an enter event. This patch makes sure we only reset the title the first time we enter after a resize.
* window: Ask xkbcommon whether or not to repeat a keyKristian Høgsberg2014-02-051-1/+2
|
* Makefile.am: Fix protocol source files usageQuentin Glidic2014-02-011-18/+0
| | | | Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* Revert "stacking: Remove transient window support"Jasper St. Pierre2014-02-011-6/+18
| | | | | | | This reverts commit 4c1a11074af2c2221d50b0c35d2d0d883647bc15. Use the new window_set_transient_for / window_get_transient_for and xdg-shell support for this...