Commit a1e73156 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

remove the call to gdk_window_get_pointer() again.

2008-09-03  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpnavigationview.c
	(gimp_navigation_view_motion_notify): remove the call to
	gdk_window_get_pointer() again.

	(gimp_navigation_view_grab_pointer): instead, grab the pointer
	properly with owner_events=FALSE so all events are reported with
	respect to the widget's window.


svn path=/trunk/; revision=26844
parent 435f6e39
2008-09-03 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpnavigationview.c
(gimp_navigation_view_motion_notify): remove the call to
gdk_window_get_pointer() again.
(gimp_navigation_view_grab_pointer): instead, grab the pointer
properly with owner_events=FALSE so all events are reported with
respect to the widget's window.
2008-09-03 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
......
......@@ -255,7 +255,7 @@ gimp_navigation_view_grab_pointer (GimpNavigationView *nav_view)
window = GIMP_VIEW (nav_view)->event_window;
gdk_pointer_grab (window, TRUE,
gdk_pointer_grab (window, FALSE,
GDK_BUTTON_RELEASE_MASK |
GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_MOTION_MASK |
......@@ -383,7 +383,6 @@ gimp_navigation_view_motion_notify (GtkWidget *widget,
{
GimpNavigationView *nav_view = GIMP_NAVIGATION_VIEW (widget);
GimpView *view = GIMP_VIEW (widget);
gint x, y;
if (! nav_view->has_grab)
{
......@@ -416,11 +415,9 @@ gimp_navigation_view_motion_notify (GtkWidget *widget,
return FALSE;
}
gdk_window_get_pointer (view->event_window, &x, &y, NULL);
gimp_navigation_view_move_to (nav_view,
x - nav_view->motion_offset_x,
y - nav_view->motion_offset_y);
mevent->x - nav_view->motion_offset_x,
mevent->y - nav_view->motion_offset_y);
gdk_event_request_motions (mevent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment