{"action":"closed","issue":{"url":"https://api.github.com/repos/Ajnasz/gh-api-test/issues/264","labels_url":"https://api.github.com/repos/Ajnasz/gh-api-test/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/Ajnasz/gh-api-test/issues/264/comments","events_url":"https://api.github.com/repos/Ajnasz/gh-api-test/issues/264/events","html_url":"https://github.com/Ajnasz/gh-api-test/issues/264","id":127327976,"number":264,"title":"Transparency issue while adding app to hidden slit","user":{"login":"Ajnasz","id":38329,"avatar_url":"https://avatars.githubusercontent.com/u/38329?v=3","gravatar_id":"","url":"https://api.github.com/users/Ajnasz","html_url":"https://github.com/Ajnasz","followers_url":"https://api.github.com/users/Ajnasz/followers","following_url":"https://api.github.com/users/Ajnasz/following{/other_user}","gists_url":"https://api.github.com/users/Ajnasz/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajnasz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajnasz/subscriptions","organizations_url":"https://api.github.com/users/Ajnasz/orgs","repos_url":"https://api.github.com/users/Ajnasz/repos","events_url":"https://api.github.com/users/Ajnasz/events{/privacy}","received_events_url":"https://api.github.com/users/Ajnasz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Ajnasz/gh-api-test/labels/bugs","name":"bugs","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-18T23:04:07Z","updated_at":"2016-01-18T23:05:14Z","closed_at":"2016-01-18T23:05:14Z","body":"While playing with bbdock I encountered a small bug in the slit when adding clients using transparent graphics (bbdock) while the slit is hidden.\r\nAlso I am using compton for true transparency, but don't think using a compositor or not will make much of a difference for this.\r\n\r\nbbdock adds slit clients to launch applications and uses png icons for the clients. If a png icon with transparency is used and bbdock is started while the slit is hidden (i.e. by autoHide), the transparent regions of the png are rendered black for me. Once an icon is clicked to start the application, the transparent regions are displayed correctly (but only for this single icon).\r\nIf autoHide is disabled and the slit is always shown, all graphics are displayed correctly.\r\nI assume the reason for this is that there is no background pixmap to be obtained while the slit is hidden.\r\n\r\nLooking at the code, I was at least able to create a small workaround:\r\nOn creation of the clients, Slit::reconfigure() is called and contains some code to set background pixmaps. Additionally, there are checks at the end to ensure the slit is hidden when autoHide is enabled.\r\nBy making Slit::reconfigure() show the slit before creating the background pixmaps the transparency issue vanishes.\r\nThe downside to that workaround is that the slit will show up for a moment despite autoHide being set when adding clients to the slit.\r\nI think this behaviour is acceptable since we get correct transparency in slit apps, but there may be a more sophisticated solution for this.\r\nI'm providing you a patch with my workaround in case you think it is acceptable to have the slit show up for a moment when adding clients."}}