[Xfce4-commits] <xfce4-xkb-plugin:master> Reset the current group to 0 whenever config change is detected.
Igor Slepchin
noreply at xfce.org
Wed Aug 22 23:24:10 CEST 2012
Updating branch refs/heads/master
to d7490a02ab8cd69a6e161e160f76adc2a600105e (commit)
from cb50bc31797bf34d4896fefdcd4c99641131854a (commit)
commit d7490a02ab8cd69a6e161e160f76adc2a600105e
Author: Igor Slepchin <igor.slepchin at gmail.com>
Date: Mon Jul 23 14:34:40 2012 -0400
Reset the current group to 0 whenever config change is detected.
This avoids some weirdness when the layout change causes the current
group to change/disappear. Besides, we're resetting the rest of
the settings anyway.
panel-plugin/xkb-config.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/xkb-config.c b/panel-plugin/xkb-config.c
index b0fdb84..f8c5b65 100644
--- a/panel-plugin/xkb-config.c
+++ b/panel-plugin/xkb-config.c
@@ -446,7 +446,10 @@ xkb_config_xkl_config_changed (XklEngine *engine, gpointer user_data)
xkb_config_update_from_xkl ();
if (config->callback != NULL)
- config->callback (xkb_config_get_current_group (), TRUE, config->callback_data);
+ {
+ xkb_config_set_group (0);
+ config->callback (0, TRUE, config->callback_data);
+ }
}
gint
More information about the Xfce4-commits
mailing list