- Nov 24, 2013
-
-
Kristian Høgsberg authored
If libdrm is available, weston-launch and launcer-util.c will support getting the drm device and setting and dropping drm master, otherwise we'll only support getting input devices.
-
- Nov 23, 2013
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
We abused SIMPLE_CLIENT_LIBS before, but if you disable simple clients, the test suite fails to link. Use test client specific variables instead. https://bugs.freedesktop.org/show_bug.cgi?id=71530
-
Kristian Høgsberg authored
terminal_init_tabs() needs an accurate terminal->width to be able to correctly initialize the tab ruler.
-
Kristian Høgsberg authored
This makes sure we pop down popups when the X backend loses keyboard focus or when the kms backend vt-switches away.
-
- Nov 22, 2013
-
-
Emilio Pozuelo Monfort authored
It's possible for a pointer's focus to be null, e.g. because the focus surface has been bestroyed. Prevent a crash when that happens and a client takes too long to respond to a ping. Signed-off-by:
Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
-
Kristian Høgsberg authored
We used to have to composite the pointer on top of the drag icon, but the final protocol allows us to specify both a drag icon and a cursor. Remove the complexity that dealt with that.
-
Giulio Camuffo authored
with the previous patch the resource isn't used inside weston_surface_destroy() anymore (aside sending events unuseful for a closing client), so we can safely reset it. Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Reviewed-by:
Bryce Harrington <b.harrington@samsung.com>
-
Pekka Paalanen authored
-
Pekka Paalanen authored
If the environment variable WESTON_TEST_CLIENT_PATH is not set, do not quit Weston in the test plugin. This allows one to start Weston with the test plugin manually, and then run any tests also manually, while observing Weston's behaviour over time. This is useful for: - Running a test multiple times and checking if Weston leaks (e.g. with Valgrind) - Running tests manually on a backend that is not x11 or wayland, especially the backends that require weston-launch, and therefore cannot be used with the 'make check' machinery. This change should not affect 'make check' behaviour, because there WESTON_TEST_CLIENT_PATH is always set. Cc: U. Artie Eoff <ullysses.a.eoff@intel.com> Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
Pekka Paalanen authored
This tests the wl_shm buffer access wrappers, that are supposed to catch the invalid accesses to a memory-mapped file beyond EOF. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
Emilio Pozuelo Monfort authored
-
Emilio Pozuelo Monfort authored
-
David Herrmann authored
Set errno and return -1 in public API calls like all other weston code does. Most systemd+dbus calls return negative error-codes instead of -1 and setting errno. Thus, we need to explicitly set errno before returning. Also note that we must set errno _after_ the cleanup path. Calling functions like close() in the cleanup path might overwrite errno (which is not what we want). So protect errno until the final return -1;
-
- Nov 21, 2013
-
-
Kristian Høgsberg authored
The gcc built-in 'bool' type is not the same size as dbus_bool_t, which is an uint32_t. Passing a pointer to bool where dbus expects a uint32_t * doesn't work. Reviewed-by:
David Herrmann <dh.herrmann@gmail.com>
-
Giulio Camuffo authored
with the surface ref-count feature a surface may live on after its resource was destroyed. so listen for the resource destroy signal and set the focus to NULL. Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net>
-
- Nov 20, 2013
-
-
Kristian Høgsberg authored
Use a switch for this and don't fall back to XRGB8888 if we don't recognize the format.
-
- Nov 19, 2013
-
-
Jason Ekstrand authored
Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Jason Ekstrand authored
-
Jason Ekstrand authored
Without this, weston will segfault whenever the focus is a non-client surface such as the black surface in fullscreen.
-
Ander Conselvan de Oliveira authored
When a renderer switch happens, it is possible that when the surface state is created, a buffer for the given surface is already available. In that case, run the attach routine so that the pixel contents are properly set. Otherwise, it would only be set when a new attach request is made for that surface. Also, change the drm backend so that it keeps the buffer reference in the weston_surface when running with the pixman renderer. The pixman renderer keeps a reference to it anyway, so it is never released early. This makes the renderer transition seamless, without leaving a black screen as before.
-
Ander Conselvan de Oliveira authored
When running with the pixman renderer, the debug binding 'W' (mod-shift-space W) will cause the compositor to load gl-renderer.so and start using it instead of the pixman renderer.
-
Pekka Paalanen authored
If you opened a window with sub-surfaces, and then raised another window on top of that, the underlaying window's main surface was stacked properly, but the sub-surfaces remained on top of the raised window. IOW, the raised window was in between the other window and its sub-surfaces. This got broken in a7af7043, "Split the geometry information from weston_surface out into weston_view". Fix the issues: In view_list_add_subsurface_view(), the views need to be added to the end of the list, not to the head. This alone fixes the above problem, but causes the sub-surface views to be stacked irrespective of their surface stacking order. The stacking order in this test case is fixed by the changes to view_list_add(), but for sub-sub-surfaces a similar change is needed in view_list_add_subsurface_view() too. In view_list_add(), build the view list in the sub-surface stacking order, instead of pulling the parent surface always on top. Also handle the case, when the subsurface_list is completely empty: the parent surface's view must still be added. Reported-by:
Julien Isorce <julien.isorce@collabora.com> Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk> Cc: Jason Ekstrand <jason@jlekstrand.net>
-
Emilio Pozuelo Monfort authored
This is necessary since commit 1959ab.
-
Emilio Pozuelo Monfort authored
Otherwise we crash when animating the view. Signed-off-by:
Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
-
Emilio Pozuelo Monfort authored
This causes the surface to get the keyboard focus, which in turn causes focus-animation to nicely work with exposay, making the not focused surfaces to be dimmed. Signed-off-by:
Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
-
Emilio Pozuelo Monfort authored
Otherwise we'll crash when cancel is called. Signed-off-by:
Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
-
Emilio Pozuelo Monfort authored
Signed-off-by:
Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
-
Emilio Pozuelo Monfort authored
If a view which has focus is destroyed, we would send a leave event while changing focus, causing a segfault. Prevent this by listening to the view's destroy signal and removing it from the pointer focus. Signed-off-by:
Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
-
Daniel Stone authored
Exposay provides window overview functions which, when a key which produces the binding modifier is pressed on its own, scales all currently-open windows down to be shown overlaid on the desktop, providing keyboard and mouse navigation to be able to switch window focus. [pochu: rebased, ported to weston_view]
-
Daniel Stone authored
Add an animation which moves a surface to a new location, at the same time as also rescaling it to a different size from the origin, rather than the existing scale animation which resizes from the centre. [pochu: rebased, ported to weston_view]
-
Daniel Stone authored
Add the ability to bind to modifiers; the binding is armed when a key which sets the requested modifier is pressed, and triggered if the key is released with no other keys having been pressed in the meantime, as well as mouse buttons or scroll axes. This only works for direct modifiers (e.g. Shift and Alt), not modifiers which latch or lock. [pochu: rebased]
-
Louis-Francis Ratté-Boulianne authored
When enabled, this will make all but the keyboard-focused window dim. Also the background gets dimmed, if there are any windows open. The panel is not dimmed. When the keyboard focus changes, the change in dimming is animated. The dimming is implemented with transparent solid-color surfaces, two at most. The net effect of two overlapping dim surfaces is kept constant during animations (stable fade animation). There is a new weston.ini option "focus-animation", that defaults to none, and can be set to "dim-layer" to enable the focus change animation. [pq: Sliced, squashed, and rebased the patch series. Fixed surface alpha interaction with the switcher. Wrote the commit message.] [pochu: rebased, ported to weston_view]
-
Axel Davy authored
The opaque region is not set when we start the nested compositor fullscreen. This patch fixes this. Signed-off-by:
Axel Davy <axel.davy@ens.fr>
-
- Nov 16, 2013
-
-
Pekka Paalanen authored
This reverts commit 2396aec6. This exact version of the sub-surface protocol has been copied into Wayland core. Therefore it must be removed from here to avoid build conflicts and useless duplication. No other changes to sub-surface protocol consumers are needed, the identical API is now offered by libwayland-client and libwayland-server. The commit adding sub-surfaces to Wayland is: Author: Pekka Paalanen <pekka.paalanen@collabora.co.uk> protocol: add sub-surfaces to the core Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
Lubomir Rintel authored
This allows specifying a particular backend to load in a manner similar to modules. Signed-off-by:
Lubomir Rintel <lkundrak@v3.sk>
-
Giulio Camuffo authored
-
Giulio Camuffo authored
this allows to implement pointer barriers by using a custom handler
-
Giulio Camuffo authored
-