[Xfce4-commits] [apps/ristretto] 01/01: Fix toolbar not showing up in fullsceen mode

noreply at xfce.org noreply at xfce.org
Fri Aug 2 21:26:02 CEST 2019


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

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/ristretto.

commit 2c107af066e5d51b5811d37a51fda187463417cd
Author: Igor <f2404 at yandex.ru>
Date:   Fri Aug 2 15:25:50 2019 -0400

    Fix toolbar not showing up in fullsceen mode
---
 src/main_window.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index b6171b0..edf1038 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -1021,7 +1021,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
     window->priv->back = gtk_ui_manager_get_widget (window->priv->ui_manager, "/main-toolbar/back");
     window->priv->forward = gtk_ui_manager_get_widget (window->priv->ui_manager, "/main-toolbar/forward");
 G_GNUC_END_IGNORE_DEPRECATIONS
-    
+
     window->priv->image_viewer = rstto_image_viewer_new ();
     window->priv->p_viewer_s_window = gtk_scrolled_window_new (NULL, NULL);
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (window->priv->p_viewer_s_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
@@ -2540,7 +2540,8 @@ cb_rstto_main_window_motion_notify_event (RsttoMainWindow *window, GdkEventMotio
         width = gdk_window_get_width (gdk_window);
         height = gdk_window_get_height (gdk_window);
 
-        if ((event->x_root == 0) || (event->y_root == 0) || (((gint)event->x_root) == (width-1)) || (((gint)event->y_root) == (height-1)))
+        /* Give it 2 pixels to accomodate to the mouse pointer thickness */
+        if ((event->x < 2 || event->y < 2) || (event->x >= width-2 || event->y >= height-2))
         {
             if (rstto_image_list_get_n_images (window->priv->image_list) != 0)
             {

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


More information about the Xfce4-commits mailing list