call the place routine after the window is grabbed

This commit is contained in:
Dana Jansens 2003-01-17 07:06:34 +00:00
parent 48741b97c2
commit 5cc40ecc8f

View file

@ -474,14 +474,6 @@ void Screen::manageWindow(Window window)
// create the decoration frame for the client window // create the decoration frame for the client window
client->frame = new Frame(client, &_style); 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 // add to the wm's map
openbox->addClient(client->frame->window(), client); openbox->addClient(client->frame->window(), client);
openbox->addClient(client->frame->plate(), client); openbox->addClient(client->frame->plate(), client);
@ -498,6 +490,14 @@ void Screen::manageWindow(Window window)
// reparent the client to the frame // reparent the client to the frame
client->frame->grabClient(); 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 on the current desktop.. (or all desktops)
if (client->desktop() == _desktop || if (client->desktop() == _desktop ||
client->desktop() == (signed)0xffffffff) { client->desktop() == (signed)0xffffffff) {