diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2014-01-01 16:28:32 -0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-01-01 16:28:32 -0800 |
commit | 7c4f6cc145daf66cd9624f1e70dd5278241f5858 (patch) | |
tree | 7bdaea111c708d6ab085cc47a63680dc478b0699 /clients/desktop-shell.c | |
parent | 8662349394fc4d14389c973c3f00e3d580ed5b4c (diff) | |
download | weston-7c4f6cc145daf66cd9624f1e70dd5278241f5858.tar.gz |
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
Diffstat (limited to 'clients/desktop-shell.c')
-rw-r--r-- | clients/desktop-shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index 4e7a815e..f96dcf1c 100644 --- a/clients/desktop-shell.c +++ b/clients/desktop-shell.c @@ -765,7 +765,7 @@ background_configure(void *data, struct background *background = (struct background *) window_get_user_data(window); - widget_schedule_resize(background->widget, width, height); + widget_schedule_resize(background->widget, width - 256, height); } static void |