ewmh: remove _NET_DESKTOP_GEOMETRY support
Our tag concept doesn't really fit into ewmh. Thus, we were setting this property to a way too small value anyway (just the size of the first screen in case of multiple screens). Since this property is optional in ewmh, let's just drop it. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
381d840a82
commit
1703801728
|
@ -6,7 +6,6 @@ _NET_NUMBER_OF_DESKTOPS
|
||||||
_NET_CURRENT_DESKTOP
|
_NET_CURRENT_DESKTOP
|
||||||
_NET_DESKTOP_NAMES
|
_NET_DESKTOP_NAMES
|
||||||
_NET_ACTIVE_WINDOW
|
_NET_ACTIVE_WINDOW
|
||||||
_NET_DESKTOP_GEOMETRY
|
|
||||||
_NET_SUPPORTING_WM_CHECK
|
_NET_SUPPORTING_WM_CHECK
|
||||||
_NET_CLOSE_WINDOW
|
_NET_CLOSE_WINDOW
|
||||||
_NET_WM_NAME
|
_NET_WM_NAME
|
||||||
|
|
15
ewmh.c
15
ewmh.c
|
@ -75,19 +75,6 @@ ewmh_client_update_hints(lua_State *L)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Update the desktop geometry.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
ewmh_update_desktop_geometry(void)
|
|
||||||
{
|
|
||||||
area_t geom = screen_area_get(&globalconf.screens.tab[0], false);
|
|
||||||
uint32_t sizes[] = { geom.width, geom.height };
|
|
||||||
|
|
||||||
xcb_change_property(globalconf.connection, XCB_PROP_MODE_REPLACE,
|
|
||||||
globalconf.screen->root,
|
|
||||||
_NET_DESKTOP_GEOMETRY, XCB_ATOM_CARDINAL, 32, countof(sizes), sizes);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ewmh_update_net_active_window(lua_State *L)
|
ewmh_update_net_active_window(lua_State *L)
|
||||||
{
|
{
|
||||||
|
@ -137,7 +124,6 @@ ewmh_init(void)
|
||||||
_NET_CURRENT_DESKTOP,
|
_NET_CURRENT_DESKTOP,
|
||||||
_NET_DESKTOP_NAMES,
|
_NET_DESKTOP_NAMES,
|
||||||
_NET_ACTIVE_WINDOW,
|
_NET_ACTIVE_WINDOW,
|
||||||
_NET_DESKTOP_GEOMETRY,
|
|
||||||
_NET_CLOSE_WINDOW,
|
_NET_CLOSE_WINDOW,
|
||||||
_NET_WM_NAME,
|
_NET_WM_NAME,
|
||||||
_NET_WM_STRUT_PARTIAL,
|
_NET_WM_STRUT_PARTIAL,
|
||||||
|
@ -202,7 +188,6 @@ ewmh_init(void)
|
||||||
xcb_change_property(globalconf.connection, XCB_PROP_MODE_REPLACE,
|
xcb_change_property(globalconf.connection, XCB_PROP_MODE_REPLACE,
|
||||||
father, _NET_WM_PID, XCB_ATOM_CARDINAL, 32, 1, &i);
|
father, _NET_WM_PID, XCB_ATOM_CARDINAL, 32, 1, &i);
|
||||||
|
|
||||||
ewmh_update_desktop_geometry();
|
|
||||||
|
|
||||||
luaA_class_connect_signal(globalconf.L, &client_class, "focus", ewmh_update_net_active_window);
|
luaA_class_connect_signal(globalconf.L, &client_class, "focus", ewmh_update_net_active_window);
|
||||||
luaA_class_connect_signal(globalconf.L, &client_class, "unfocus", ewmh_update_net_active_window);
|
luaA_class_connect_signal(globalconf.L, &client_class, "unfocus", ewmh_update_net_active_window);
|
||||||
|
|
Loading…
Reference in New Issue