diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-29 21:48:46 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-29 21:48:46 +0000 |
| commit | 44d653e3e8d042bf3f1d68108a8197a895888da8 (patch) | |
| tree | 4260520e37122d167a5aeb87c7f6670bce7b5601 /src/screen.cc | |
| parent | 5f89f11dd3b69c0881273f32cfd4f113f744fae7 (diff) | |
make struts get added to the screen when mapping a window. let the user disable window decorations.
Diffstat (limited to 'src/screen.cc')
| -rw-r--r-- | src/screen.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/screen.cc b/src/screen.cc index e2bab5c8..d47a1540 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -520,6 +520,9 @@ void Screen::manageWindow(Window window) openbox->bindings()->fireEvent(&data); } + EventData data(_number, client, EventAction::DisplayingWindow, 0); + openbox->bindings()->fireEvent(&data); + // if on the current desktop.. (or all desktops) if (client->desktop() == _desktop || client->desktop() == (signed)0xffffffff) { @@ -532,6 +535,9 @@ void Screen::manageWindow(Window window) // add to the screen's list clients.push_back(client); + // once the client is in the list, update our strut to include the new + // client's + updateStrut(); // this puts into the stacking order, then raises it _stacking.push_back(client); raiseWindow(client); @@ -540,7 +546,6 @@ void Screen::manageWindow(Window window) openbox->bindings()->grabButtons(true, client); - // call the python NEWWINDOW binding EventData data(_number, client, EventAction::NewWindow, 0); openbox->bindings()->fireEvent(&data); |
