diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-28 19:14:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-28 19:14:54 +0000 |
| commit | 5e3ca8e66586a6dab4793cef04a3de98dc2ecfbe (patch) | |
| tree | a562b324b38509b6cff1f5c1bc13ef3957aea62c /src/Window.cc | |
| parent | 4852193a578ea3c33f8685fd87322503c28e5544 (diff) | |
don't click-to-place windows when they specify a position
Diffstat (limited to 'src/Window.cc')
| -rw-r--r-- | src/Window.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Window.cc b/src/Window.cc index 8df9ddfe..cff95ec6 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -216,7 +216,7 @@ OpenboxWindow::OpenboxWindow(Openbox &o, Window w, BScreen *s) : openbox(o) { } upsize(); - Bool place_window = True; + place_window = true; if (openbox.isStartup() || flags.transient || client.normal_hint_flags & (PPosition|USPosition)) { setGravityOffsets(); @@ -226,7 +226,7 @@ OpenboxWindow::OpenboxWindow(Openbox &o, Window w, BScreen *s) : openbox(o) { (signed) (frame.y + frame.y_border) >= 0 && frame.x <= (signed) screen->size().w() && frame.y <= (signed) screen->size().h())) - place_window = False; + place_window = false; } frame.window = createToplevelWindow(frame.x, frame.y, frame.width, @@ -1467,8 +1467,8 @@ void OpenboxWindow::deiconify(Bool reassoc, Bool raise) { // if we're using the click to place placement type, then immediately // after the window is mapped, we need to start interactively moving it - if (!(flags.iconic || reassoc) && - screen->placementPolicy() == BScreen::ClickMousePlacement) { + if (screen->placementPolicy() == BScreen::ClickMousePlacement && + place_window && !(flags.iconic || reassoc)) { // if the last window wasn't placed yet, or we're just moving a window // already, finish off that move cleanly OpenboxWindow *w = openbox.getFocusedWindow(); |
