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

bluesabre pushed a 
commit to branch 
master
in repository xfce/xfce4-settings.

commit 8bd52fa49fbbe265d30f0aaf1758acc3dee1771f
Author: Simon Steinbeiss <simon.steinbe...@elfenbeinturm.at>
Date:   Tue Feb 20 15:32:15 2018 +0100

    Drop unneeded code
---
 dialogs/accessibility-settings/find-cursor.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/dialogs/accessibility-settings/find-cursor.c 
b/dialogs/accessibility-settings/find-cursor.c
index d985524..0aefb68 100644
--- a/dialogs/accessibility-settings/find-cursor.c
+++ b/dialogs/accessibility-settings/find-cursor.c
@@ -115,7 +115,7 @@ main (gint argc, gchar **argv)
     GdkScreen     *screen = gdk_screen_get_default ();
     gint           x,y;
 
-    // just get the position of the mouse cursor
+    /* just get the position of the mouse cursor */
     gdk_device_get_position (device, &screen, &x, &y);
 
     window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@@ -127,11 +127,8 @@ main (gint argc, gchar **argv)
     gtk_widget_set_app_paintable (window, TRUE);
     gtk_window_set_skip_taskbar_hint (GTK_WINDOW (window), FALSE);
     gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DOCK);
-
-    /* this results in the same as getting the mouse cursor and setting the 
positions
-       of the window with gtk_window_move */
-    //gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_MOUSE);
     gtk_window_set_gravity (GTK_WINDOW (window), GDK_GRAVITY_NORTH_WEST);
+    /* center the window around the mouse cursor */
     gtk_window_move (GTK_WINDOW (window), x - 250, y - 250);
 
     g_signal_connect (G_OBJECT (window), "draw",

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to