summaryrefslogtreecommitdiff
path: root/src/screen.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-04 23:51:24 +0000
committerDana Jansens <danakj@orodu.net>2003-01-04 23:51:24 +0000
commiteef665c6b899cea2598b4b5cbfc4129dcf90287f (patch)
treee46763623104f9815f778347736303677759c04a /src/screen.cc
parent180cdd0e91799458552f581327a67be745909134 (diff)
only focus new 'normal' windows
Diffstat (limited to 'src/screen.cc')
-rw-r--r--src/screen.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.cc b/src/screen.cc
index f44e291c..8ea1b49e 100644
--- a/src/screen.cc
+++ b/src/screen.cc
@@ -520,7 +520,8 @@ void OBScreen::manageWindow(Window window)
Openbox::instance->bindings()->grabButtons(true, client);
// XXX: make this optional or more intelligent
- client->focus();
+ if (client->normal())
+ client->focus();
// call the python NEWWINDOW binding
EventData *data = new_event_data(window, EventNewWindow, 0);