diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2012-01-12 00:49:05 +0100 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2012-01-12 00:49:05 +0100 |
commit | 4471ef23e5e4849360a1a08b34ac54351c03c885 (patch) | |
tree | 2f2315401dea6ea542ed01cd39abca00c04ab6f2 /configure.ac | |
parent | 97ead2117550eb6092676bcbeda633bb55c71ebb (diff) | |
download | ayatana-ido-4471ef23e5e4849360a1a08b34ac54351c03c885.tar.gz ayatana-ido-4471ef23e5e4849360a1a08b34ac54351c03c885.tar.bz2 ayatana-ido-4471ef23e5e4849360a1a08b34ac54351c03c885.zip |
Patch from ~covox (LP: #867649)
In method ido_offscreen_proxy_realize(), a call is made to gdk_screen_get_rgba_visual() to get a GdkVisual handle, which is then passed as part of a GdkWindowAttr structure to gdk_window_new().
What's not taken into account is that gdk_screen_get_rgba_visual() will return NULL if RGBA isn't supported by the destination window manager (e.g. if someone turned the Composite extension off). In this case, as the field is always marked as valid for use (GDK_WA_VISUAL), gdk_window_new will fall over.
Attached is a patch to fall back on gdk_screen_get_system_visual() if RGBA isn't available. With this, unity-panel-service no longer crashes after interacting with the Sound indicator if the Composite extension is switched off.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions