From 7b9877258f09cb1fcc8f766a73f85a5c2bba06be Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 6 May 2002 06:11:46 +0000 Subject: Fix an off-by-one error. 2002-05-06 Anders Carlsson * src/display.c: (set_utf8_string_hint): Fix an off-by-one error. (meta_display_open), (event_callback), (meta_display_update_show_desktop_hint), (meta_display_show_desktop), (meta_display_unshow_desktop): * src/display.h: * src/screen.c: (set_supported_hint): Add support for _NET_WM_SHOW desktop, both as a message and as a root window property. --- src/screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/screen.c') diff --git a/src/screen.c b/src/screen.c index cc4015e2..e9a281f9 100644 --- a/src/screen.c +++ b/src/screen.c @@ -82,7 +82,7 @@ set_wm_check_hint (MetaScreen *screen) static int set_supported_hint (MetaScreen *screen) { -#define N_SUPPORTED 30 +#define N_SUPPORTED 31 #define N_WIN_SUPPORTED 1 Atom atoms[N_SUPPORTED]; @@ -116,6 +116,7 @@ set_supported_hint (MetaScreen *screen) atoms[27] = screen->display->atom_net_wm_ping; atoms[28] = screen->display->atom_net_active_window; atoms[29] = screen->display->atom_net_wm_workarea; + atoms[30] = screen->display->atom_net_wm_show_desktop; XChangeProperty (screen->display->xdisplay, screen->xroot, screen->display->atom_net_supported, -- cgit v1.2.1