Send WM_TAKE_FOCUS when setting focus (fixes java problems)
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
#ifndef _I3_H
|
||||
#define _I3_H
|
||||
|
||||
#define NUM_ATOMS 21
|
||||
#define NUM_ATOMS 22
|
||||
|
||||
extern xcb_connection_t *global_conn;
|
||||
extern xcb_key_symbols_t *keysyms;
|
||||
|
@ -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
|
||||
|
@ -64,7 +64,8 @@ enum { _NET_SUPPORTED = 0,
|
||||
WM_CLIENT_LEADER,
|
||||
_NET_CURRENT_DESKTOP,
|
||||
_NET_ACTIVE_WINDOW,
|
||||
_NET_WORKAREA
|
||||
_NET_WORKAREA,
|
||||
WM_TAKE_FOCUS
|
||||
};
|
||||
|
||||
extern unsigned int xcb_numlock_mask;
|
||||
|
Reference in New Issue
Block a user