weston/xwayland
Derek Foreman 4937214999 xwm: Add and use helper function for looking up windows in the hash table
This lets us verify that all callers are actually testing for a
successful hash lookup at compile time.

All current users of hash_table_lookup are converted to the new
wm_lookup_window() and the appropriate success check is added.
This fixes any call sites that used to assume a successful return
and dereference a NULL pointer.

This closes http://bugs.freedesktop.org/show_bug.cgi?id=83994
The xwayland test has been failing because weston crashes due to
a hash lookup failure and a subsequent dereference of the returned
NULL pointer.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-04-10 09:30:05 +03:00
..
dnd.c Don't include xserver-server-protocol.h 2014-04-07 09:46:27 -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 xwayland: Clean up the WM properly if X server crashes 2014-08-27 14:49:16 +03:00
selection.c xwm: fix use after free 2015-01-29 17:09:29 -08:00
window-manager.c xwm: Add and use helper function for looking up windows in the hash table 2015-04-10 09:30:05 +03:00
xwayland.h xwm: support maximizing xwayland windows 2015-02-02 16:00:10 -08:00