Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Compton keeps window active during screenshots #208
I am not too sure how I can explain this but it seems that Compton for some reason has a delay or is displaying the last active window when I hit the print screen button to take a screenshot of my desktop (I am using xfce4-screenshooter). Basically, if I had firefox as the active window and minimized it to take a screenshot of my desktop, when I press the button to take the screenshot it will take it and have Firefox in the screnshot instead of my desktop. If I do try and take a screenshot again, it will be of my desktop but also with the screenshot program appearing. I am almost certain this had to do with something in my config file but I have looked and it seems normal.
EDIT: This happens whenever GLX backend is used.
Compton config - http://pastebin.com/Y48zbupU
I'm truly sorry for leaving your report unanswered for 20 days...
Firstly, the fact that the lag only appears in screenshots basically indicates the major problem is not in the compositor. The X Composite API makes no distinction for content used for displaying and taking screenshot -- the assumption is, what you see is what the screenshot taker should see. I would firstly consider the possibility of a driver issue. Could you please provide more information about your driver and hardware?
By the way,
Its no problem, as long as I get a reply I am happy. I am going to try everything in the order that you gave me. By the way, I am using AMDs closed source drivers. I am almost 100% positive that all of the issues arent on due to compton but due to AMDs idiotic closed source drivers.
I dont know what to doabout the last two commands, as you said its safe but only if the driver can handle it properly and knowing AMD...id rather not try unless you really want me to.
Thank you for replying and again, no need to be sorry about late reply or anything. We all cant be on the computer everyday, moreso replying to these issues everyday as we would go nuts. Thank you though. I am going to remove the nonfree/closed source drivers, and install the free/opensource drivers and see how compton and screenshot taking behave with my settings from OP...I am almost sure everything will work out perfectly. I will reply back. Thanks again
Just as I suspected, switching to the FOSS drivers fixed the issue. Screenshots work as they should, I tested using the compton config posted above. Problem with FOSS drivers is that they arent good for gaming so it wont be too good of a solution for me, at least we know that the issue is with AMD's stupid driver.
So it's fglrx again...
You may wish to get a nVidia card next time. Their drivers are (relatively) better, at least. Almost the best among all graphic drivers on Linux, if it doesn't have weird bugs remaining...
And if you need a workaround: Doesn't X Render backend (
Oh, sorry, you meant,
Really? GraphicsMagick correctly captures the composited screen contents (i.e. with transparency, shadow, and such) with
So taking screenshots on normal OpenGL application works fine? Then the problem probably requires both OpenGL + composition to trigger.
Unfortunately I have essentially never touched AMD/ATI cards... (Because I knew they are terrible. :-D) So I don't have more advices here. You could try enabling/disabling different stuffs in Catalyst Control Center or change things in
And even crazy things like switching WM might help...
Sounds like a bug in driver, heh.
Usually you would want
Xfce uses a compositor based on X Render, somewhat equivalent to compton's
Meh, indeed. Perhaps what they are really caring about is how the professional applications (Like Autodesk Maya?) work, instead of more-or-less eye-candy stuffs like composition.
That's fine. :-D Really, it doesn't hurt to try and it (generally) improves performance.