weston/xwayland
Giulio Camuffo aa9747833e xwm: use always a valid 'primary view' for an X window
The xwm gets a primary view for a X window using the get_primary_view
vfunc of the shell_interface struct. Storing it is dangerous though
because it doesn't listen for its destruction so it may end up using the
old stored view pointer after that view was freed, or after the primary
view for that window was changed to another one.

Fetch the primary view just before using it every time and try to not
abuse this 'primary view' concept which may map badly to some shells:
iterate over all the views instead when it makes sense.

Tested-by: Benoit Gschwind <gschwind@gnu-log.net>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2015-09-29 18:22:45 -07:00
..
dnd.c input: Don't test keyboard/pointer/touch pointers 2015-07-31 15:16:09 -07:00
hash.c Move xwayland up one directory level 2013-12-04 10:20:02 -08:00
hash.h Move xwayland up one directory level 2013-12-04 10:20:02 -08:00
launcher.c Unified multiple definitions of container_of() macro. 2015-06-15 17:11:58 -07:00
selection.c Partially revert "xwayland: Always free reply from xcb_get_property_reply()" 2015-07-15 13:55:58 -07:00
window-manager.c xwm: use always a valid 'primary view' for an X window 2015-09-29 18:22:45 -07:00
xwayland.h weston_wm: Implement _NET_ACTIVE_WINDOW 2015-09-25 15:37:25 -07:00