Xfce Bug Tracker

Sub domains
 
color scheme preview garbled on low bit depth display
Status:
RESOLVED: FIXED
Priority:
Medium
Severity:
normal
Product:
Xfce4-settings
Component:
Appearance Settings Show other bugs

Comments

Description Dwight Engen 2015-09-23 15:22:21 CEST
Created attachment 6461 [details]
[PATCH] Fix color scheme preview on low bit depth displays

When running on a 16 bit X display the color scheme preview in the appearances dialog is garbled. Running xfce4-appearance-settings gives the following output:

--
(xfce4-appearance-settings:11170): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to have a specified colormap. All windows have a colormap, however, pixmaps only have colormap by default if they were created with a non-NULL window argument. Otherwise a colormap must be set on them with gdk_drawable_set_colormap

(xfce4-appearance-settings:11170): Gdk-WARNING **: gdkpixbuf-drawable.c:1257: Depth of the source drawable is 24 where as the visual depth of the colormap passed is 16
--

The attached patch fixes this by passing the root window and its depth for default values to gdk_pixmap_new().
Comment 1 Sean Davis editbugs 2016-08-13 16:11:34 CEST
Thanks for the patch! I tested it and did not see any issue, so it's been applied at: https://git.xfce.org/xfce/xfce4-settings/commit/?id=683822cdb02fdbee0a33f767af3dc5caa998d2c8
Note You need to log in before you can comment on or make changes to this bug.

Bug #12223

Reported by:
Dwight Engen
Reported on: 2015-09-23
Last modified on: 2016-08-13 Show history

People

Assignee:
Nick Schermer
CC List:
3 users show

Version

Version:
unspecified
Target Milestone:
Xfce 4.12

Attachments

[PATCH] Fix color scheme preview on low bit depth displays (956 bytes, patch)
2015-09-23 15:22 CEST, Dwight Engen
no flags Details

Additional information