From 0092ff64f045b155b7096d5af24b1ec49002c405 Mon Sep 17 00:00:00 2001 From: id Date: Sat, 25 Sep 1999 15:02:59 +0000 Subject: [PATCH] I am not sure this is a correct fix. But GNOME has appicon which may has different class name from the window. Such as GnomeTerminal.GnomeTerminal may have appicon name gnome-terminal.Gnome-terminal. --- src/screen.c | 3 +++ src/winspector.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/screen.c b/src/screen.c index 4e6d5dc3..0d352bb9 100644 --- a/src/screen.c +++ b/src/screen.c @@ -715,6 +715,9 @@ wScreenInit(int screen_number) XSelectInput(dpy, scr->root_win, event_mask); #ifdef KEEP_XKB_LOCK_STATUS + /* Only GroupLock doesn't work correctly in my system since right-alt + * can change mode while holding it too - ]d + */ if (wXkbSupported) { XkbSelectEvents(dpy,XkbUseCoreKbd, XkbStateNotifyMask, diff --git a/src/winspector.c b/src/winspector.c index 5109e629..1279841e 100644 --- a/src/winspector.c +++ b/src/winspector.c @@ -589,9 +589,9 @@ saveSettings(WMButton *button, InspectorPanel *panel) assert(wapp->main_window_desc->wm_class!=NULL); buffer = wmalloc(strlen(wapp->main_window_desc->wm_instance) - +strlen(wwin->wm_class)+4); + +strlen(wapp->main_window_desc->wm_class)+4); strcat(strcpy(buffer, wapp->main_window_desc->wm_instance), "."); - strcat(buffer, wwin->wm_class); + strcat(buffer, wapp->main_window_desc->wm_class); key = PLMakeString(buffer); free(buffer);