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

@ -247,6 +247,7 @@ void set_focus(xcb_connection_t *conn, Client *client, bool set_anyways) {
CLIENT_LOG(client);
/* Set focus to the entered window, and flush xcb buffer immediately */
xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, client->child, XCB_CURRENT_TIME);
ewmh_update_active_window(client->child);
//xcb_warp_pointer(conn, XCB_NONE, client->child, 0, 0, 0, 0, 10, 10);
if (client->container != NULL) {