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

@ -20,4 +20,13 @@
*/
void ewmh_update_current_desktop();
/**
* Updates _NET_ACTIVE_WINDOW with the currently focused window.
*
* EWMH: The window ID of the currently active window or None if no window has
* the focus.
*
*/
void ewmh_update_active_window(xcb_window_t window);
#endif

View File

@ -21,7 +21,7 @@
#ifndef _I3_H
#define _I3_H
#define NUM_ATOMS 19
#define NUM_ATOMS 20
extern xcb_connection_t *global_conn;
extern xcb_key_symbols_t *keysyms;

View File

@ -62,7 +62,8 @@ enum { _NET_SUPPORTED = 0,
UTF8_STRING,
WM_STATE,
WM_CLIENT_LEADER,
_NET_CURRENT_DESKTOP
_NET_CURRENT_DESKTOP,
_NET_ACTIVE_WINDOW
};
extern unsigned int xcb_numlock_mask;