ewmh: correctly set _NET_ACTIVE_WINDOW

This commit is contained in:
Michael Stapelberg
2009-12-25 15:19:39 +01:00
parent 0641e6a1a3
commit e7e9e8e49d
7 changed files with 31 additions and 3 deletions

View File

@ -31,6 +31,7 @@
#include "client.h"
#include "workspace.h"
#include "log.h"
#include "ewmh.h"
/*
* Go through all existing windows (if the window manager is restarted) and manage them
@ -450,8 +451,10 @@ map:
if (map_frame)
render_container(conn, new->container);
}
if (new->container == CUR_CELL || client_is_floating(new))
if (new->container == CUR_CELL || client_is_floating(new)) {
xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, new->child, XCB_CURRENT_TIME);
ewmh_update_active_window(new->child);
}
}
}