[Xfce4-commits] [xfce/xfce4-settings] 20/27: Clean up the motion-notify-event code

noreply at xfce.org noreply at xfce.org
Sun Feb 25 23:56:29 CET 2018


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   2   
   in repository xfce/xfce4-settings.

commit 20f9fa26ee7cc2fe2922799b61f0ea7341fbce63
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sun Feb 25 12:36:30 2018 +0100

    Clean up the motion-notify-event code
---
 dialogs/accessibility-settings/find-cursor.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dialogs/accessibility-settings/find-cursor.c b/dialogs/accessibility-settings/find-cursor.c
index af29968..cd6ef00 100644
--- a/dialogs/accessibility-settings/find-cursor.c
+++ b/dialogs/accessibility-settings/find-cursor.c
@@ -88,12 +88,7 @@ find_cursor_motion_notify_event (GtkWidget      *widget,
                                  GdkEventMotion *event,
                                  gpointer userdata)
 {
-    GdkWindow *window = gtk_widget_get_window (widget);
-    gint x, y, root_x, root_y;
-
-    gdk_window_get_pointer (window, &x, &y, NULL);
-    gtk_window_get_position (GTK_WINDOW (widget), &root_x, &root_y);
-    gtk_window_move (GTK_WINDOW (widget), root_x + x - (circle_size/2), root_y + y - (circle_size/2));
+    gtk_window_move (GTK_WINDOW (widget), event->x_root - (circle_size/2), event->y_root - (circle_size/2));
     return FALSE;
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list