[Xfce4-commits] [panel-plugins/xfce4-clipman-plugin] 03/15: Fixed modifier also in actions
noreply at xfce.org
noreply at xfce.org
Wed Jun 1 22:39:56 CEST 2016
This is an automated email from the git hooks/post-receive script.
schuellerf pushed a commit to branch master
in repository panel-plugins/xfce4-clipman-plugin.
commit 12d8423fe7ef3b14271c6081d76b166d8673884d
Author: Florian Schüller <florian.schueller at gmail.com>
Date: Tue May 24 22:40:47 2016 +0200
Fixed modifier also in actions
---
panel-plugin/actions.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/actions.c b/panel-plugin/actions.c
index 4bb7001..e679e4b 100644
--- a/panel-plugin/actions.c
+++ b/panel-plugin/actions.c
@@ -687,16 +687,18 @@ clipman_actions_match_with_menu (ClipmanActions *actions,
ClipmanActionsEntry *entry;
GtkWidget *mi;
GSList *l, *entries;
- GdkModifierType state;
+ GdkModifierType state = 0;
GdkDisplay* display = gdk_display_get_default ();
GdkDeviceManager *device_manager = gdk_display_get_device_manager (display);
GdkDevice* device = gdk_device_manager_get_client_pointer (device_manager);
+ GdkScreen* screen = gdk_screen_get_default ();
+ GdkWindow * root_win = gdk_screen_get_root_window (screen);
if (group == ACTION_GROUP_SELECTION)
{
gint ctrl_mask = 0;
- gdk_window_get_device_position (NULL, device, NULL, NULL, &state);
+ gdk_window_get_device_position (root_win, device, NULL, NULL, &state);
ctrl_mask = state & GDK_CONTROL_MASK;
if (ctrl_mask && actions->priv->skip_action_on_key_down)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list