2
# Ubuntu: https://bugs.launchpad.net/bugs/178953
3
# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=530702
4
# Patch: http://bugzilla.gnome.org/attachment.cgi?id=141537
5
# Description: fix metacity to give up the compositing manager
7
diff -Nur -x '*.orig' -x '*~' metacity-2.27.1/src/core/screen.c metacity-2.27.1.new/src/core/screen.c
8
--- metacity-2.27.1/src/core/screen.c 2009-09-09 06:55:35.000000000 +1000
9
+++ metacity-2.27.1.new/src/core/screen.c 2009-09-10 16:47:03.000000000 +1000
10
@@ -2791,11 +2791,14 @@
14
+ screen->wm_cm_timestamp = meta_display_get_current_time_roundtrip (
17
g_snprintf (selection, sizeof(selection), "_NET_WM_CM_S%d", screen->number);
18
meta_verbose ("Setting selection: %s\n", selection);
19
a = XInternAtom (screen->display->xdisplay, selection, FALSE);
20
XSetSelectionOwner (screen->display->xdisplay, a,
21
- screen->wm_cm_selection_window, CurrentTime);
22
+ screen->wm_cm_selection_window, screen->wm_cm_timestamp);
28
g_snprintf (selection, sizeof(selection), "_NET_WM_CM_S%d", screen->number);
29
a = XInternAtom (screen->display->xdisplay, selection, FALSE);
30
- XSetSelectionOwner (screen->display->xdisplay, a, None, CurrentTime);
31
+ XSetSelectionOwner (screen->display->xdisplay, a,
32
+ None, screen->wm_cm_timestamp);
34
#endif /* HAVE_COMPOSITE_EXTENSIONS */
35
diff -Nur -x '*.orig' -x '*~' metacity-2.27.1/src/core/screen-private.h metacity-2.27.1.new/src/core/screen-private.h
36
--- metacity-2.27.1/src/core/screen-private.h 2009-09-09 06:55:35.000000000 +1000
37
+++ metacity-2.27.1.new/src/core/screen-private.h 2009-09-10 16:47:03.000000000 +1000
40
#ifdef HAVE_COMPOSITE_EXTENSIONS
41
Window wm_cm_selection_window;
42
+ guint32 wm_cm_timestamp;