call the place window routine after the frame is created

This commit is contained in:
Dana Jansens 2003-01-17 07:04:30 +00:00
parent 6f0581627a
commit 48741b97c2

View file

@ -471,6 +471,9 @@ void Screen::manageWindow(Window window)
// reparented back to root automatically // reparented back to root automatically
XChangeSaveSet(**otk::display, window, SetModeInsert); XChangeSaveSet(**otk::display, window, SetModeInsert);
// create the decoration frame for the client window
client->frame = new Frame(client, &_style);
if (!(openbox->state() == Openbox::State_Starting || if (!(openbox->state() == Openbox::State_Starting ||
client->positionRequested())) { client->positionRequested())) {
// position the window intelligenty .. hopefully :) // position the window intelligenty .. hopefully :)
@ -479,9 +482,6 @@ void Screen::manageWindow(Window window)
openbox->bindings()->fireEvent(&data); openbox->bindings()->fireEvent(&data);
} }
// create the decoration frame for the client window
client->frame = new Frame(client, &_style);
// 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);