summaryrefslogtreecommitdiff
path: root/src/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-07 05:17:39 +0000
committerDana Jansens <danakj@orodu.net>2003-01-07 05:17:39 +0000
commit9d2ba8205c981776b8120c4c7edb623864206298 (patch)
tree951c3e2318807629c6d21cb120c8d3dd2a37583b /src/screen.cc
parent4c768d5d63154e416e1282396dc48492d0585d42 (diff)
sending windows to workspaces works. focus messes up on fast switching
Diffstat (limited to 'src/screen.cc')
-rw-r--r--src/screen.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/screen.cc b/src/screen.cc
index 49d63409..7f15b243 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -535,12 +535,6 @@ void OBScreen::manageWindow(Window window)
Openbox::instance->bindings()->grabButtons(true, client);
- if (shown) {
- // XXX: make this optional or more intelligent
- if (client->normal())
- client->focus();
- }
-
// call the python NEWWINDOW binding
EventData *data = new_event_data(_number, window, EventNewWindow, 0);
Openbox::instance->bindings()->fireEvent(data);
@@ -650,7 +644,7 @@ void OBScreen::changeDesktop(long desktop)
_desktop);
if (old == _desktop) return;
-
+
OBClient::List::iterator it, end = clients.end();
for (it = clients.begin(); it != end; ++it) {
if ((*it)->desktop() == old) {
@@ -660,9 +654,8 @@ void OBScreen::changeDesktop(long desktop)
}
}
- // if nothing is focused, force the callbacks to fire
-// if (!Openbox::instance->focusedClient())
-// Openbox::instance->setFocusedClient(0);
+ // force the callbacks to fire
+ Openbox::instance->setFocusedClient(0);
}
void OBScreen::changeNumDesktops(long num)