only focus new 'normal' windows

This commit is contained in:
Dana Jansens 2003-01-04 23:51:24 +00:00
parent 180cdd0e91
commit eef665c6b8

View file

@ -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);