From fc550ba2e038c20280f563f13d7746ed3acfcc55 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 30 Jul 2006 23:58:08 +0000 Subject: whoops --- src/Window.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Window.cc b/src/Window.cc index ccdc613..f6c7242 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -508,6 +508,9 @@ void FluxboxWindow::init() { restoreAttributes(); + if (m_workspace_number < 0 || m_workspace_number >= screen().numberOfWorkspaces()) + m_workspace_number = screen().currentWorkspaceID(); + bool place_window = (m_old_pos_x == 0); if (fluxbox.isStartup()) -- cgit v0.11.2