12
12
Not forwardable, because it's a hack.
13
13
Author: Lionel Le Folgoc <mrpouit@ubuntu.com>
14
14
Forwarded: not-needed
15
Last-Update: 2012-01-04
15
Last-Update: 2012-01-09
16
16
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/xfdesktop4/+bug/329616
17
18
--- xfdesktop4-4.8.3.orig/src/xfce-desktop.c
18
19
+++ xfdesktop4-4.8.3/src/xfce-desktop.c
19
@@ -472,7 +472,7 @@ xfce_desktop_monitors_changed(GdkScreen
21
screen_set_selection(XfceDesktop *desktop)
26
gchar selection_name[100];
27
Atom selection_atom, manager_atom;
28
20
@@ -484,6 +484,13 @@ screen_set_selection(XfceDesktop *deskto
29
21
selection_atom = XInternAtom(GDK_DISPLAY(), selection_name, False);
30
22
manager_atom = XInternAtom(GDK_DISPLAY(), "MANAGER", False);
32
+ if(xfdesktop_check_is_running(&xid)) {
33
+ /* the previous check in src/main.c occurs too early, so workaround by
34
+ * adding this one. Hopefully it should help for lp #329616 */
24
+ /* the previous check in src/main.c occurs too early, so workaround by
25
+ * adding this one. Hopefully it should help for lp #329616 */
26
+ if(XGetSelectionOwner(GDK_DISPLAY(), selection_atom) != None) {
35
27
+ g_warning("%s: already running, quitting.", PACKAGE);