Send WM_TAKE_FOCUS when setting focus (fixes java problems)

This commit is contained in:
Michael Stapelberg
2011-03-17 22:44:29 +01:00
parent 7cb1ca5a92
commit f5afe2f67e
6 changed files with 32 additions and 2 deletions

View File

@ -126,6 +126,12 @@ char *convert_utf8_to_ucs2(char *input, int *real_strlen);
Client *get_last_focused_client(xcb_connection_t *conn, Container *container,
Client *exclude);
/**
* Sends WM_TAKE_FOCUS to the client
*
*/
void take_focus(xcb_connection_t *conn, Client *client);
/**
* Sets the given client as focused by updating the data structures correctly,
* updating the X input focus and finally re-decorating both windows (to