Skip to content

Instantly share code, notes, and snippets.

@asdfman
Created April 23, 2012 17:59
Show Gist options
  • Save asdfman/2472719 to your computer and use it in GitHub Desktop.
Save asdfman/2472719 to your computer and use it in GitHub Desktop.
Compton patch for error 9 caused by Java AWT tray icon creation. Occurs occasionally with Tint2 and possibly other system trays. You can find Compton at https://github.com/chjj/compton. Put the patch in the source folder and execute "patch < trayfix.patch
--- compton.c 2012-04-23 20:49:21.000000000 +0300
+++ compnew.c 2012-04-23 20:49:09.000000000 +0300
@@ -1005,6 +1005,11 @@
continue;
}
+ /* patch for error 9 caused by java AWT tray icons */
+ if (w->a.width < 2 && w->a.height < 2) {
+ continue;
+ }
+
if (!w->picture) {
XRenderPictureAttributes pa;
XRenderPictFormat *format;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment