1
From bae29238768a138626db145600f424b80bb171ce Mon Sep 17 00:00:00 2001
2
From: Eric Koegel <eric.koegel@gmail.com>
3
Date: Sun, 26 Feb 2012 16:54:15 +0300
4
Subject: Added the root menu popup when there are no icons shown on the
8
src/xfce-desktop.c | 12 +++++++++---
9
1 file changed, 9 insertions(+), 3 deletions(-)
11
Slightly edited line numbers for the patch to apply cleanly in Xubuntu.
13
diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
14
index 2fc51d0..654f986 100644
15
--- a/src/xfce-desktop.c
16
+++ b/src/xfce-desktop.c
17
@@ -871,10 +871,16 @@ xfce_desktop_button_press_event(GtkWidget *w,
19
guint button = evt->button;
20
guint state = evt->state;
22
+ g_return_val_if_fail(XFCE_IS_DESKTOP(w), FALSE);
24
if(evt->type == GDK_BUTTON_PRESS) {
25
- if(button == 2 || (button == 1 && (state & GDK_SHIFT_MASK)
26
- && (state & GDK_CONTROL_MASK)))
27
+ if(XFCE_DESKTOP(w)->priv->icons_style == XFCE_DESKTOP_ICON_STYLE_NONE
28
+ && (button == 3 || (button == 1 && (state & GDK_SHIFT_MASK)))) {
29
+ xfce_desktop_popup_root_menu(XFCE_DESKTOP(w),
32
+ } else if(button == 2 || (button == 1 && (state & GDK_SHIFT_MASK)
33
+ && (state & GDK_CONTROL_MASK)))
35
xfce_desktop_popup_secondary_root_menu(XFCE_DESKTOP(w),