[Xfce4-commits] [xfce/xfdesktop] 01/01: Fix menu popup issue with desktop icons disabled (Bug #14415)
noreply at xfce.org
noreply at xfce.org
Tue May 29 01:01:16 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e 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 xfce/xfdesktop.
commit b94027ad3c0e74cebdd28c586d0d361a7d8ecb97
Author: ToZ <tony.paulic at gmail.com>
Date: Mon May 28 19:55:06 2018 -0300
Fix menu popup issue with desktop icons disabled (Bug #14415)
---
src/xfce-desktop.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index af09a98..d98e205 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -1207,12 +1207,11 @@ xfce_desktop_button_press_event(GtkWidget *w,
return FALSE;
#endif
/* no icons on the desktop, grab the focus and pop up the menu */
- if(!gtk_widget_has_grab(w)) {
+ if(!gtk_widget_has_grab(w))
gtk_grab_add(w);
- xfce_desktop_popup_root_menu(desktop, button, evt->time);
- return TRUE;
- }
+ xfce_desktop_popup_root_menu(desktop, button, evt->time);
+ return TRUE;
} else if(button == 2 || (button == 1 && (state & GDK_SHIFT_MASK)
&& (state & GDK_CONTROL_MASK)))
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list