shell: Only assign focus on click if there is a pointer focus surface
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 2 Jan 2014 00:28:32 +0000 (16:28 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 2 Jan 2014 00:28:32 +0000 (16:28 -0800)
commit7c4f6cc145daf66cd9624f1e70dd5278241f5858
tree7bdaea111c708d6ab085cc47a63680dc478b0699
parent8662349394fc4d14389c973c3f00e3d580ed5b4c
shell: Only assign focus on click if there is a pointer focus surface

If we don't have a background image from the desktop-shell client or the
pointer for some other reason doesn't have a focus we trigger a
segfault as we try to deref the seat->pointer->focus NULL pointer.

https://bugs.freedesktop.org/show_bug.cgi?id=73066
clients/desktop-shell.c
desktop-shell/shell.c