- Add mutter-handle-no-to-no-monitor.patch: fix possible crash when turning monitor off and on while logged in (bgo#788607). - Add mutter-preferred-mode.patch: fix a crash on some ATI (radeon) configurations (bgo#789153). Possibly fixes boo#1063871, along with the gnome-shell patch for bgo#788607 OBS-URL: https://build.opensuse.org/request/show/535472 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/mutter?expand=0&rev=265
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 8886e1bbdcb712d1e70873b2cccb7ab62e6a3eec Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
|
|
Date: Sat, 7 Oct 2017 00:33:39 -0400
|
|
Subject: [PATCH] window: Handle updating from no to no monitor
|
|
|
|
When we received two hot plug events that both resulted in headless
|
|
configuration, we tried to find a new window monitor given the old.
|
|
That resulted in a null pointer dereference; avoid that by only trying
|
|
to find the same monitor if there was an old one.
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=788607
|
|
---
|
|
src/core/window.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/core/window.c b/src/core/window.c
|
|
index dc60a667c..c2d9869d2 100644
|
|
--- a/src/core/window.c
|
|
+++ b/src/core/window.c
|
|
@@ -3793,7 +3793,7 @@ meta_window_update_for_monitors_changed (MetaWindow *window)
|
|
new = find_monitor_by_winsys_id (window, window->preferred_output_winsys_id);
|
|
|
|
/* Otherwise, try to find the old output on a new monitor */
|
|
- if (!new)
|
|
+ if (old && !new)
|
|
new = find_monitor_by_winsys_id (window, old->winsys_id);
|
|
|
|
/* Fall back to primary if everything else failed */
|
|
--
|
|
2.14.2
|
|
|