Created
April 23, 2012 17:59
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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