diff options
author | Nick Schermer <nick@xfce.org> | 2011-01-29 18:18:37 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2011-01-29 18:18:37 +0100 |
commit | 16ca0888abb9e92ed8a38d1e53128da01c712c4f (patch) | |
tree | 3dd9dbcecf58fdff3e8d729fde0c6040ec3986e5 /wrapper | |
parent | f76161d04c3d5e70abb3daf0b4295ed6f219da00 (diff) | |
download | xfce4-panel-16ca0888abb9e92ed8a38d1e53128da01c712c4f.tar.gz |
Don't disappear when wm restarts with compositing (bug #7194).
Because of a quick widget hide/show to make sure the
window was redrawn, the window became invisible when quickly
restarting the wm. Remove this unneeded trick.
Also cleanup the colormap handling, we now only set the rgba
colormap in the init function, since it depends on the screen
and won't change during runtime, this makes things a lot easier.
Diffstat (limited to 'wrapper')
-rw-r--r-- | wrapper/wrapper-plug.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/wrapper/wrapper-plug.c b/wrapper/wrapper-plug.c index 691c1977..99f00c27 100644 --- a/wrapper/wrapper-plug.c +++ b/wrapper/wrapper-plug.c @@ -103,11 +103,7 @@ wrapper_plug_init (WrapperPlug *plug) /* set the colormap */ screen = gtk_window_get_screen (GTK_WINDOW (plug)); - - colormap = gdk_screen_get_rgba_colormap (screen); - if (colormap == NULL) - colormap = gdk_screen_get_rgb_colormap (screen); if (colormap != NULL) gtk_widget_set_colormap (GTK_WIDGET (plug), colormap); } |