From a7da03c0221933e75063f1a4f5759dd9ba45a5c8 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 13 Jul 2006 04:48:03 +0000 Subject: a little code simplification --- src/Window.cc | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index 6310ce1..e80d360 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -513,21 +513,18 @@ void FluxboxWindow::init() { 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; } -- cgit v0.11.2