diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-05 13:45:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-05 13:45:00 +0000 |
| commit | 52cb7bd11ed83a57c4c1affcdac8a1f7d68ae551 (patch) | |
| tree | 5fe2e0800338abb2481d6c370a957c7216eac019 /src/screen.cc | |
| parent | 1cfc76577db97606893c1f238d589f4cd3f52d7a (diff) | |
PROPERLY HANDLE CLIENT BORDERS
PROPERLY HANDLE CLIENT GRAVITY
YES!#%&*#!#!
windows can be moved/resized now (and the frame will play along)!
Diffstat (limited to 'src/screen.cc')
| -rw-r--r-- | src/screen.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/screen.cc b/src/screen.cc index 22d5d1be..d40a2a3a 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -354,7 +354,7 @@ void OBScreen::manageWindow(Window window) Openbox::instance->registerHandler(window, client); // we dont want a border on the client - XSetWindowBorderWidth(otk::OBDisplay::display, window, 0); + client->toggleClientBorder(false); // specify that if we exit, the window should not be destroyed and should be // reparented back to root automatically @@ -399,10 +399,9 @@ void OBScreen::unmanageWindow(OBClient *client) XSelectInput(otk::OBDisplay::display, client->window(), NoEventMask); frame->hide(); - - // we dont want a border on the client - XSetWindowBorderWidth(otk::OBDisplay::display, client->window(), - client->borderWidth()); + + // give the client its border back + client->toggleClientBorder(true); delete client->frame; client->frame = 0; |
