diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-04 01:04:31 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-04 01:04:31 +0000 |
| commit | 9860b76c50e5ecacc85921539058eab4c655c38d (patch) | |
| tree | 5587ac2eb155a2a22997132f4552ee979b29cfbb /src/screen.cc | |
| parent | 22bd294c7baed75a24b1df7cc423042c965acbdb (diff) | |
unmap works.. once
Diffstat (limited to 'src/screen.cc')
| -rw-r--r-- | src/screen.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screen.cc b/src/screen.cc index 3c6731c2..01abd83c 100644 --- a/src/screen.cc +++ b/src/screen.cc @@ -350,6 +350,8 @@ void OBScreen::manageWindow(Window window) // create the OBClient class, which gets all of the hints on the window Openbox::instance->addClient(window, client = new OBClient(_number, window)); + // register for events + Openbox::instance->registerHandler(window, client); // we dont want a border on the client XSetWindowBorderWidth(otk::OBDisplay::display, window, 0); @@ -384,6 +386,9 @@ void OBScreen::unmanageWindow(OBClient *client) OBFrame *frame = client->frame; // XXX: pass around focus if this window was focused + + // unregister for handling events + Openbox::instance->clearHandler(client->window()); // remove the window from our save set XChangeSaveSet(otk::OBDisplay::display, client->window(), SetModeDelete); |
