summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 1895b13..5aebad4 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -382,7 +382,9 @@ FluxboxWindow::~FluxboxWindow() {
382void FluxboxWindow::init() { 382void FluxboxWindow::init() {
383 m_attaching_tab = 0; 383 m_attaching_tab = 0;
384 // magic to detect if moved by hints 384 // magic to detect if moved by hints
385 m_old_pos_x = 0; 385 // don't use 0, since setting maximized or fullscreen on the window will set
386 // this to 0
387 m_old_pos_x = m_screen.width();
386 388
387 assert(m_client); 389 assert(m_client);
388 m_client->setFluxboxWindow(this); 390 m_client->setFluxboxWindow(this);
@@ -512,7 +514,7 @@ void FluxboxWindow::init() {
512 if (m_workspace_number < 0 || m_workspace_number >= screen().numberOfWorkspaces()) 514 if (m_workspace_number < 0 || m_workspace_number >= screen().numberOfWorkspaces())
513 m_workspace_number = screen().currentWorkspaceID(); 515 m_workspace_number = screen().currentWorkspaceID();
514 516
515 bool place_window = (m_old_pos_x == 0); 517 bool place_window = (m_old_pos_x == static_cast<signed>(m_screen.width()));
516 518
517 if (fluxbox.isStartup()) 519 if (fluxbox.isStartup())
518 place_window = false; 520 place_window = false;