~aacid/metacity/metacity_multimonitor_struts

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 00f0078808fa4e33cf4a5f1d88f33c121828a735 Mon Sep 17 00:00:00 2001
From: Robert Ancell <robert.ancell@gmail.com>
Date: Wed, 2 Jun 2010 09:43:47 +1000
Subject: [PATCH] Use gdk_screen_get_system_colormap with gdk_screen_get_system_visual as gdk_screen_get_default_colormap can return a colormap that is incompatible.
Author: Fabien Tassin
Bug: bugs.launchpad.net/bugs/584287

---
 src/ui/ui.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Index: metacity-2.34.1/src/ui/ui.c
===================================================================
--- metacity-2.34.1.orig/src/ui/ui.c	2011-03-08 04:31:53.000000000 -0500
+++ metacity-2.34.1/src/ui/ui.c	2011-08-18 00:09:59.519807670 -0400
@@ -317,7 +317,7 @@
   gint attributes_mask;
   GdkWindow *window;
   GdkVisual *visual;
-  GdkColormap *cmap = gdk_screen_get_default_colormap (screen);
+  GdkColormap *cmap = gdk_screen_get_system_colormap (screen);
   
   /* Default depth/visual handles clients with weird visuals; they can
    * always be children of the root depth/visual obviously, but