From 94428558348af014d966ae6e753583ca9357a1ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 10 Jul 2011 01:25:41 +0200 Subject: [PATCH] protect scene access, fix instant segfault when non compositing --- workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 0639b6a141..38651414f5 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -530,7 +530,7 @@ Client* Workspace::createClient(Window w, bool is_mapped) Unmanaged* Workspace::createUnmanaged(Window w) { - if (w == scene->overlayWindow()->window()) + if (compositing() && w == scene->overlayWindow()->window()) return NULL; Unmanaged* c = new Unmanaged(this); if (!c->track(w)) {