all repos — fluxbox @ a7da03c0221933e75063f1a4f5759dd9ba45a5c8

custom fork of the fluxbox windowmanager

a little code simplification
markt markt
commit

a7da03c0221933e75063f1a4f5759dd9ba45a5c8

parent

f8e56683139ef0eee9b3578f80b49deda5f6e418

1 files changed, 9 insertions(+), 12 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -513,21 +513,18 @@ m_workspace_number = screen().currentWorkspaceID();

bool place_window = (m_old_pos_x == 0); - if (fluxbox.isStartup() || m_client->isTransient() || + if (fluxbox.isStartup()) + place_window = false; + else if (m_client->isTransient() || m_client->normal_hint_flags & (PPosition|USPosition)) { - if (! fluxbox.isStartup()) { + int real_x = frame().x(); + int real_y = frame().y(); - int real_x = frame().x(); - int real_y = frame().y(); - - if (real_x >= 0 && - real_y + frame().y() >= 0 && - real_x <= (signed) screen().width() && - real_y <= (signed) screen().height()) - place_window = false; - - } else + if (real_x >= 0 && + real_y + frame().y() >= 0 && + real_x <= (signed) screen().width() && + real_y <= (signed) screen().height()) place_window = false; }