diff options
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r-- | src/Gnome.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc index 9fd1a48..1691c9e 100644 --- a/src/Gnome.cc +++ b/src/Gnome.cc | |||
@@ -240,7 +240,7 @@ void Gnome::updateWorkspaceCount(BScreen &screen) { | |||
240 | } | 240 | } |
241 | 241 | ||
242 | void Gnome::updateWorkspace(FluxboxWindow &win) { | 242 | void Gnome::updateWorkspace(FluxboxWindow &win) { |
243 | long val = win.workspaceNumber(); | 243 | long val = win.isInitialized() ? win.workspaceNumber() : win.screen().currentWorkspaceID(); |
244 | if (win.isStuck()) { | 244 | if (win.isStuck()) { |
245 | val = -1; | 245 | val = -1; |
246 | } | 246 | } |