xkb plugin forgets the window_map when a new terminal or terminal tab is opened
Submitted by pav..@..gmx.us
Assigned to Azamat H. Hackimov
Description
I use the "per Window" layout and it works until I open a new terminal (i tried xfce-terminal and xterm). I did a little investigation and found that each time a new terminal is open, the system triggers the X-config-changed signal and then the plugin resets its internal status losing all the user information. By commenting out the signal binding the plugin works as expected.
--- ./xfce4-xkb-plugin/panel-plugin/xkb-config.c 2016-04-24 10:44:21.120352689 +0200 +++ ../xfce4-xkb-plugin/panel-plugin/xkb-config.c 2016-04-24 10:42:00.247010708 +0200 @@ -121,10 +121,10 @@ "X-state-changed", G_CALLBACK (xkb_config_xkl_state_changed), NULL);
- g_signal_connect (config->engine,
-
"X-config-changed",
-
G_CALLBACK (xkb_config_xkl_config_changed),
-
NULL);
+// g_signal_connect (config->engine, +// "X-config-changed", +// G_CALLBACK (xkb_config_xkl_config_changed), +// NULL); gdk_window_add_filter (NULL, (GdkFilterFunc) handle_xevent, NULL);
return TRUE;
Version: 0.7.1