Blame SOURCES/support-headless-mode.patch

e1cefa
From acee50af7dd6e8f4bea30314bc9dc5f8d212d2f6 Mon Sep 17 00:00:00 2001
e1cefa
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
e1cefa
Date: Thu, 23 Jul 2015 16:00:55 +0200
e1cefa
Subject: [PATCH] window-list: Handle the no-monitor case
e1cefa
e1cefa
---
e1cefa
 extensions/window-list/extension.js | 2 ++
e1cefa
 1 file changed, 2 insertions(+)
e1cefa
e1cefa
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
e1cefa
index 9347813..28feda6 100644
e1cefa
--- a/extensions/window-list/extension.js
e1cefa
+++ b/extensions/window-list/extension.js
e1cefa
@@ -979,6 +979,8 @@ const WindowList = new Lang.Class({
e1cefa
 
e1cefa
     _updatePosition: function() {
e1cefa
         let monitor = Main.layoutManager.primaryMonitor;
e1cefa
+        if (!monitor)
e1cefa
+            return;
e1cefa
         this.actor.width = monitor.width;
e1cefa
         this.actor.set_position(monitor.x, monitor.y + monitor.height - this.actor.height);
e1cefa
     },
e1cefa
-- 
e1cefa
2.4.3
e1cefa