~ken-vandine/ido/lp_867649

  • Committer: Ken VanDine
  • Date: 2012-01-11 23:49:05 UTC
  • Revision ID: ken.vandine@canonical.com-20120111234905-qio3featdrjsq0r9
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.
Filename Latest Rev Last Changed Committer Comment Size
..
example 1 14 years ago Cody Russell IDO initial commit, scale menuitem Diff
src 1 14 years ago Cody Russell IDO initial commit, scale menuitem Diff
.bzrignore 92 12 years ago Ted Gould Ignoring m4 619 bytes Diff Download File
AUTHORS 1 14 years ago Cody Russell IDO initial commit, scale menuitem 39 bytes Diff Download File
File autogen.sh 2 14 years ago Cody Russell Autogen changes 202 bytes Diff Download File
ChangeLog 1 14 years ago Cody Russell IDO initial commit, scale menuitem Empty Diff Download File
configure.ac 97.1.1 12 years ago Ken VanDine removed deprecations from gtk3 and fixed sizing is 3.6 KB Diff Download File
COPYING 6.3.1 14 years ago Cody Russell Copyright/license fu 7.4 KB Diff Download File
COPYING.LGPL.2.1 6.3.1 14 years ago Cody Russell Copyright/license fu 25.9 KB Diff Download File
INSTALL 1 14 years ago Cody Russell IDO initial commit, scale menuitem 9.2 KB Diff Download File
libido.pc.in 1 14 years ago Cody Russell IDO initial commit, scale menuitem 244 bytes Diff Download File
libido3.pc.in 77.1.2 12 years ago Michael Terry allow building either gtk2 or gtk3 versions; some 246 bytes Diff Download File
Makefile.am 82.3.1 12 years ago Javier Jardón build: Use upstream silent rules instead shave 456 bytes Diff Download File
NEWS 1 14 years ago Cody Russell IDO initial commit, scale menuitem Empty Diff Download File
README 1 14 years ago Cody Russell IDO initial commit, scale menuitem Empty Diff Download File
TODO 6.3.2 14 years ago Cody Russell Remove stuff Empty Diff Download File