fix crash on multimonitors when workspaces-only-on-primary was disabled

This commit is contained in:
Tom Beckmann 2015-01-03 23:05:26 +01:00
parent 470a071595
commit a276a56d67

View File

@ -120,7 +120,8 @@ namespace Gala
void window_added (Workspace? workspace, Window window)
{
if (workspace == null || !Prefs.get_dynamic_workspaces ())
if (workspace == null || !Prefs.get_dynamic_workspaces ()
|| window.on_all_workspaces)
return;
unowned Screen screen = workspace.get_screen ();