summaryrefslogtreecommitdiff
path: root/src/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-07 06:56:57 +0000
committerDana Jansens <danakj@orodu.net>2003-01-07 06:56:57 +0000
commita132968424c96d9dc62d144c5e863a6810c0369d (patch)
tree31164d241ee8d2014f0915fe7d52903ac8d5e11a /src/screen.cc
parent7990e6fc46c4a73139cb59e2d17df37ff1fe4e0a (diff)
don't place the window magically if we're starting (the window was already placed)
Diffstat (limited to 'src/screen.cc')
-rw-r--r--src/screen.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.cc b/src/screen.cc
index f7587abc..2dcc110f 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -492,7 +492,8 @@ void OBScreen::manageWindow(Window window)
// reparented back to root automatically
XChangeSaveSet(otk::OBDisplay::display, window, SetModeInsert);
- if (!client->positionRequested()) {
+ if (!(Openbox::instance->state() == Openbox::State_Starting ||
+ client->positionRequested())) {
// position the window intelligenty .. hopefully :)
// call the python PLACEWINDOW binding
EventData *data = new_event_data(_number, window, EventPlaceWindow, 0);