{"action":"created","issue":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/266","labels_url":"https://api.github.com/repos/baskerville/bspwm/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/baskerville/bspwm/issues/266/comments","events_url":"https://api.github.com/repos/baskerville/bspwm/issues/266/events","html_url":"https://github.com/baskerville/bspwm/issues/266","id":85801642,"number":266,"title":"maim and bspwm","user":{"login":"r8b7xy","id":10890591,"avatar_url":"https://avatars.githubusercontent.com/u/10890591?v=3","gravatar_id":"","url":"https://api.github.com/users/r8b7xy","html_url":"https://github.com/r8b7xy","followers_url":"https://api.github.com/users/r8b7xy/followers","following_url":"https://api.github.com/users/r8b7xy/following{/other_user}","gists_url":"https://api.github.com/users/r8b7xy/gists{/gist_id}","starred_url":"https://api.github.com/users/r8b7xy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r8b7xy/subscriptions","organizations_url":"https://api.github.com/users/r8b7xy/orgs","repos_url":"https://api.github.com/users/r8b7xy/repos","events_url":"https://api.github.com/users/r8b7xy/events{/privacy}","received_events_url":"https://api.github.com/users/r8b7xy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-06T18:59:38Z","updated_at":"2015-06-06T22:35:18Z","closed_at":null,"body":"I don't know if this is bspwm bug but:\r\nWhen I try to run `maim -s` and mouse is over any window and I select it maim gives an error:\r\n```\r\nX Error of failed request:  BadMatch (invalid parameter attributes)\r\n  Major opcode of failed request:  73 (X_GetImage)\r\n  Serial number of failed request:  25  \r\n  Current serial number in output stream:  25  \r\n```\r\nProblem doesn't appear when mouse is over lemonbar and then I select the window I'd like to print (bspwm@arch).\r\n[video](https://youtu.be/FJWQyNgK4Jo)"},"comment":{"url":"https://api.github.com/repos/baskerville/bspwm/issues/comments/109654818","html_url":"https://github.com/baskerville/bspwm/issues/266#issuecomment-109654818","issue_url":"https://api.github.com/repos/baskerville/bspwm/issues/266","id":109654818,"user":{"login":"Eryla","id":3287521,"avatar_url":"https://avatars.githubusercontent.com/u/3287521?v=3","gravatar_id":"","url":"https://api.github.com/users/Eryla","html_url":"https://github.com/Eryla","followers_url":"https://api.github.com/users/Eryla/followers","following_url":"https://api.github.com/users/Eryla/following{/other_user}","gists_url":"https://api.github.com/users/Eryla/gists{/gist_id}","starred_url":"https://api.github.com/users/Eryla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eryla/subscriptions","organizations_url":"https://api.github.com/users/Eryla/orgs","repos_url":"https://api.github.com/users/Eryla/repos","events_url":"https://api.github.com/users/Eryla/events{/privacy}","received_events_url":"https://api.github.com/users/Eryla/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T22:35:18Z","updated_at":"2015-06-06T22:35:18Z","body":"I don't think its related to maim, I can reproduce this with just xprop.\r\n```\r\nxprop\r\n_NET_WM_PID(CARDINAL) = 909\r\n_NET_WM_NAME(UTF8_STRING) = \"bspwm\"\r\n_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0xe00000\r\n```\r\n\r\nI can reproduce it 100% by opening a new window or changing desktop without focusing anything.\r\n\r\nI use \r\n```\r\n~button1\r\n        bspc pointer -g focus\r\n```\r\nin sxhkd.\r\n\r\nAnd it doesn't focus windows if they happen to be on the same location while changing desktop.\r\n(Works if I move the cursor out of the window and back again to \"focus\" it_)"}}