From 52cb7bd11ed83a57c4c1affcdac8a1f7d68ae551 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 5 Dec 2002 13:45:00 +0000 Subject: PROPERLY HANDLE CLIENT BORDERS PROPERLY HANDLE CLIENT GRAVITY YES!#%&*#!#! windows can be moved/resized now (and the frame will play along)! --- src/screen.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/screen.cc') 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; -- cgit v1.2.3