don't call placement strategy on maximized or fullscreen windows
markt markt
2 files changed,
6 insertions(+),
2 deletions(-)
M
src/Window.cc
→
src/Window.cc
@@ -382,7 +382,9 @@
void FluxboxWindow::init() { m_attaching_tab = 0; // magic to detect if moved by hints - m_old_pos_x = 0; + // don't use 0, since setting maximized or fullscreen on the window will set + // this to 0 + m_old_pos_x = m_screen.width(); assert(m_client); m_client->setFluxboxWindow(this);@@ -512,7 +514,7 @@
if (m_workspace_number < 0 || m_workspace_number >= screen().numberOfWorkspaces()) m_workspace_number = screen().currentWorkspaceID(); - bool place_window = (m_old_pos_x == 0); + bool place_window = (m_old_pos_x == static_cast<signed>(m_screen.width())); if (fluxbox.isStartup()) place_window = false;