[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 114/473: Stop unnecessarily tracking pointer motion.
noreply at xfce.org
noreply at xfce.org
Mon Feb 16 23:54:44 CET 2015
This is an automated email from the git hooks/post-receive script.
gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.
commit 7d9926083da80ddab4da6df35afc188bf6f5c41d
Author: Graeme Gott <graeme at gottcode.org>
Date: Mon Jul 15 12:56:01 2013 -0400
Stop unnecessarily tracking pointer motion.
---
src/menu.cpp | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/menu.cpp b/src/menu.cpp
index 892538a..12a88ad 100644
--- a/src/menu.cpp
+++ b/src/menu.cpp
@@ -69,7 +69,7 @@ Menu::Menu(XfceRc* settings) :
gtk_window_set_skip_taskbar_hint(m_window, true);
gtk_window_set_skip_pager_hint(m_window, true);
gtk_window_stick(m_window);
- gtk_widget_add_events(GTK_WIDGET(m_window), GDK_BUTTON_PRESS_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_POINTER_MOTION_MASK | GDK_STRUCTURE_MASK);
+ gtk_widget_add_events(GTK_WIDGET(m_window), GDK_BUTTON_PRESS_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_STRUCTURE_MASK);
g_signal_connect(m_window, "enter-notify-event", G_CALLBACK(Menu::on_enter_notify_event_slot), this);
g_signal_connect(m_window, "leave-notify-event", G_CALLBACK(Menu::on_leave_notify_event_slot), this);
g_signal_connect(m_window, "focus-in-event", G_CALLBACK(on_focus_in_event_slot), this);
@@ -520,8 +520,7 @@ bool Menu::on_leave_notify_event(GdkEventCrossing* event)
gdk_pointer_grab(gtk_widget_get_window(GTK_WIDGET(m_window)), true,
GdkEventMask(
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
- GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK |
- GDK_POINTER_MOTION_MASK
+ GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK
),
NULL, NULL, event->time);
}
@@ -536,8 +535,7 @@ bool Menu::on_focus_in_event()
gdk_pointer_grab(gtk_widget_get_window(GTK_WIDGET(m_window)), true,
GdkEventMask(
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
- GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK |
- GDK_POINTER_MOTION_MASK
+ GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK
),
NULL, NULL, gtk_get_current_event_time());
return false;
@@ -624,8 +622,7 @@ bool Menu::on_map_event()
gdk_pointer_grab(gtk_widget_get_window(GTK_WIDGET(m_window)), true,
GdkEventMask(
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
- GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK |
- GDK_POINTER_MOTION_MASK
+ GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK
),
NULL, NULL, gtk_get_current_event_time());
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list