protect scene access, fix instant segfault when non compositing

This commit is contained in:
Thomas Lübking 2011-07-10 01:25:41 +02:00
parent cf66e4c86d
commit 9442855834

View file

@ -530,7 +530,7 @@ Client* Workspace::createClient(Window w, bool is_mapped)
Unmanaged* Workspace::createUnmanaged(Window w) Unmanaged* Workspace::createUnmanaged(Window w)
{ {
if (w == scene->overlayWindow()->window()) if (compositing() && w == scene->overlayWindow()->window())
return NULL; return NULL;
Unmanaged* c = new Unmanaged(this); Unmanaged* c = new Unmanaged(this);
if (!c->track(w)) { if (!c->track(w)) {