Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maim and bspwm #266

Closed
r8b7xy opened this issue Jun 6, 2015 · 3 comments
Closed

maim and bspwm #266

r8b7xy opened this issue Jun 6, 2015 · 3 comments

Comments

@r8b7xy
Copy link

r8b7xy commented Jun 6, 2015

I don't know if this is bspwm bug but:
When I try to run maim -s and mouse is over any window and I select it maim gives an error:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)
  Serial number of failed request:  25  
  Current serial number in output stream:  25  

Problem doesn't appear when mouse is over lemonbar and then I select the window I'd like to print (bspwm@arch).
video

@gyaru
Copy link

gyaru commented Jun 6, 2015

I don't think its related to maim, I can reproduce this with just xprop.

xprop
_NET_WM_PID(CARDINAL) = 909
_NET_WM_NAME(UTF8_STRING) = "bspwm"
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0xe00000

I can reproduce it 100% by opening a new window in a desktop where I haven't focused anything yet or just changing to a desktop without focusing anything.

I use

~button1
        bspc pointer -g focus

in sxhkd.

And it doesn't focus windows if they happen to be on the same location while changing desktop.
(Works if I move the cursor out of the window and back again to "focus" it)
Which is probably why you get the bspwm window instead and BadMatch in maim.

@rr-
Copy link

rr- commented Jun 7, 2015

Isn't it the same issue as #232 which was fixed in 56895ab about 15 hours ago?

@r8b7xy
Copy link
Author

r8b7xy commented Jun 7, 2015

Thanks! It indeed works as expected with latest github pull.

@r8b7xy r8b7xy closed this as completed Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants