From: Tom Hochstein Date: Wed, 8 Feb 2017 17:07:27 +0000 (-0600) Subject: weston: Fix patch for no input device handling X-Git-Tag: 2.2 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=55b15ce2bbb69300488c5243d5a1d6f1172d31e0;p=meta-freescale.git weston: Fix patch for no input device handling The previous patch had a logic error. The upstream submission was correct, so this just synchronizes the patch. Signed-off-by: Tom Hochstein Signed-off-by: Otavio Salvador --- diff --git a/recipes-graphics/wayland/weston/0007-xwayland-Fix-crash-when-run-with-no-input-device.patch b/recipes-graphics/wayland/weston/0007-xwayland-Fix-crash-when-run-with-no-input-device.patch index 1304cef2..e3b1fa8a 100644 --- a/recipes-graphics/wayland/weston/0007-xwayland-Fix-crash-when-run-with-no-input-device.patch +++ b/recipes-graphics/wayland/weston/0007-xwayland-Fix-crash-when-run-with-no-input-device.patch @@ -7,6 +7,8 @@ Starting an xterm with no input device led to a crash because weston_wm_pick_seat() was returning garbage and weston_wm_selection_init() was trying to use the garbage. +Upstream-Status: Accepted [https://cgit.freedesktop.org/wayland/weston/commit/?id=e7fff215ada3fd3d1b2af664888f960c082f9065] + Signed-off-by: Tom Hochstein --- xwayland/selection.c | 10 +++++++--- @@ -21,7 +23,7 @@ Index: weston-1.11.0/xwayland/selection.c wm->atom.clipboard, mask); seat = weston_wm_pick_seat(wm); -+ if (seat != NULL) ++ if (seat == NULL) + return; wm->selection_listener.notify = weston_wm_set_selection; wl_signal_add(&seat->selection_signal, &wm->selection_listener);