[Xfce4-commits] [xfce/xfce4-settings] 12/27: Add comments and fixme

noreply at xfce.org noreply at xfce.org
Sun Feb 25 23:56:21 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 eaed9027092dc98a9e30ae2d7baf75bc743af734
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Feb 23 01:22:15 2018 +0100

    Add comments and fixme
---
 dialogs/accessibility-settings/find-cursor.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dialogs/accessibility-settings/find-cursor.c b/dialogs/accessibility-settings/find-cursor.c
index ca20eb7..79a6d1a 100644
--- a/dialogs/accessibility-settings/find-cursor.c
+++ b/dialogs/accessibility-settings/find-cursor.c
@@ -36,7 +36,7 @@
 #include <xfconf/xfconf.h>
 
 /* global var to keep track of the circle size */
-double px = 10;
+double px = 1;
 
 
 gboolean timeout (gpointer data)
@@ -123,10 +123,10 @@ find_cursor_window_expose (GtkWidget *widget,
         cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0);
     }
     else {
-        if (px == 10) {
+        /* only take a screenshot once in the first iteration */
+        if (px == 1)
           pixbuf = get_rectangle_screenshot (root_x + x - 250, root_y + y - 250, widget);
-        }
-
+        /* FIXME: use 0,0 as coordinates */
         gdk_cairo_set_source_pixbuf (cr, pixbuf, 1, 0);
     }
 

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


More information about the Xfce4-commits mailing list