mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
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.
This commit is contained in:
@@ -715,6 +715,9 @@ wScreenInit(int screen_number)
|
|||||||
XSelectInput(dpy, scr->root_win, event_mask);
|
XSelectInput(dpy, scr->root_win, event_mask);
|
||||||
|
|
||||||
#ifdef KEEP_XKB_LOCK_STATUS
|
#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) {
|
if (wXkbSupported) {
|
||||||
XkbSelectEvents(dpy,XkbUseCoreKbd,
|
XkbSelectEvents(dpy,XkbUseCoreKbd,
|
||||||
XkbStateNotifyMask,
|
XkbStateNotifyMask,
|
||||||
|
|||||||
@@ -589,9 +589,9 @@ saveSettings(WMButton *button, InspectorPanel *panel)
|
|||||||
assert(wapp->main_window_desc->wm_class!=NULL);
|
assert(wapp->main_window_desc->wm_class!=NULL);
|
||||||
|
|
||||||
buffer = wmalloc(strlen(wapp->main_window_desc->wm_instance)
|
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(strcpy(buffer, wapp->main_window_desc->wm_instance), ".");
|
||||||
strcat(buffer, wwin->wm_class);
|
strcat(buffer, wapp->main_window_desc->wm_class);
|
||||||
key = PLMakeString(buffer);
|
key = PLMakeString(buffer);
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user