[Xfce4-commits] [panel-plugins/xfce4-clipman-plugin] 01/15: Fixed getting modifier
noreply at xfce.org
noreply at xfce.org
Wed Jun 1 22:39:54 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 1d8d735d50ac2dc1ef3ad01df93a4a1d9c8ba10e
Author: Florian Schüller <florian.schueller at gmail.com>
Date: Tue May 24 22:12:33 2016 +0200
Fixed getting modifier
---
panel-plugin/collector.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/collector.c b/panel-plugin/collector.c
index 5af7088..075b1be 100644
--- a/panel-plugin/collector.c
+++ b/panel-plugin/collector.c
@@ -145,15 +145,17 @@ cb_clipboard_owner_change (ClipmanCollector *collector,
static gboolean
cb_check_primary_clipboard (ClipmanCollector *collector)
{
- 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);
g_return_val_if_fail (GTK_IS_CLIPBOARD (collector->priv->default_clipboard) && GTK_IS_CLIPBOARD (collector->priv->primary_clipboard), FALSE);
/* Postpone until the selection is done */
- gdk_window_get_device_position (NULL, device, NULL, NULL, &state);
+ gdk_window_get_device_position (root_win, device, NULL, NULL, &state);
if (state & (GDK_BUTTON1_MASK|GDK_SHIFT_MASK))
return TRUE;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list