weston/clients
Pekka Paalanen a03a93c6ea window: fix segfault in window_handle_key()
When a window destroyed, if any input had the window in keyboard
focus, the keyboard focus is reset to NULL. A new keyboard focus is set
only, if the user clicks something. If the user presses a key instead of
clicking, the key press event is sent to the client which has NULL
keyboard focus, triggering a segfault in window_handle_key().

Fix the segfault by ignoring the key event, if there is no target
window.

I triggered this segfault by clicking the unlock dialog away, and then
pressing a key.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-12-02 06:31:08 -05:00
..
.gitignore clients: add wscreensaver 2011-11-18 14:46:26 +02:00
cairo-util.c cairo-util: Dont use non-standard JCS_EXT_BGRX color space 2011-11-22 14:40:48 -05:00
cairo-util.h cairo-util: Add helper to load jpeg files 2011-10-20 13:11:12 -04:00
config.c Fix inconsistent #include style 2011-11-22 09:27:03 -05:00
desktop-shell.c desktop-shell: Make panel and background output dependent 2011-11-23 20:17:54 +01:00
dnd.c Implement the new dnd/selection protocol 2011-11-23 16:20:28 -05:00
eventdemo.c window.c: Drop global handler argument 2011-08-29 17:12:36 -04:00
flower.c Fix inconsistent #include style 2011-11-22 09:27:03 -05:00
gears.c Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
glmatrix.c wscreensaver: configure glmatrix 2011-11-18 14:48:39 +02:00
image.c Fix inconsistent #include style 2011-11-22 09:27:03 -05:00
Makefile.am tablet-shell: Add a stub tablet-shell client 2011-11-26 17:37:54 -05:00
matrix3.xpm clients: import glmatrix.c and matrix3.xpm 2011-11-18 14:45:04 +02:00
resizor.c Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
screenshot.c Fix inconsistent #include style 2011-11-22 09:27:03 -05:00
simple-egl.c simple-egl: Remove leftover wl_visual variable 2011-10-19 21:16:58 -04:00
simple-shm.c simple-shm: Add a wl_shm listener 2011-11-17 10:27:17 -05:00
smoke.c Fix inconsistent #include style 2011-11-22 09:27:03 -05:00
tablet-shell.c tablet-shell: Add more interesting lock and home screens 2011-11-26 23:38:46 -05:00
terminal.c Implement the new dnd/selection protocol 2011-11-23 16:20:28 -05:00
view.c Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
window.c window: fix segfault in window_handle_key() 2011-12-02 06:31:08 -05:00
window.h window.c: Cache outputs 2011-11-26 17:27:37 -05:00
wscreensaver-glue.c clients: add wscreensaver 2011-11-18 14:46:26 +02:00
wscreensaver-glue.h Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
wscreensaver.c Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
wscreensaver.h clients: add wscreensaver 2011-11-18 14:46:26 +02:00