diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-17 07:06:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-17 07:06:34 +0000 |
| commit | 5cc40ecc8f4ae3c875d61b3e844c22c89c019c58 (patch) | |
| tree | f2c9827d11c5c16339a2a44b7fb82bb83200ca84 | |
| parent | 48741b97c229dc6515fcf8e06bc4da47f9abab72 (diff) | |
call the place routine after the window is grabbed
| -rw-r--r-- | src/screen.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/screen.cc b/src/screen.cc index 1033f8d8..b95c1908 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -474,14 +474,6 @@ void Screen::manageWindow(Window window) // create the decoration frame for the client window client->frame = new Frame(client, &_style); - if (!(openbox->state() == Openbox::State_Starting || - client->positionRequested())) { - // position the window intelligenty .. hopefully :) - // call the python PLACEWINDOW binding - EventData data(_number, client, EventPlaceWindow, 0); - openbox->bindings()->fireEvent(&data); - } - // add to the wm's map openbox->addClient(client->frame->window(), client); openbox->addClient(client->frame->plate(), client); @@ -498,6 +490,14 @@ void Screen::manageWindow(Window window) // reparent the client to the frame client->frame->grabClient(); + if (!(openbox->state() == Openbox::State_Starting || + client->positionRequested())) { + // position the window intelligenty .. hopefully :) + // call the python PLACEWINDOW binding + EventData data(_number, client, EventPlaceWindow, 0); + openbox->bindings()->fireEvent(&data); + } + // if on the current desktop.. (or all desktops) if (client->desktop() == _desktop || client->desktop() == (signed)0xffffffff) { |
