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

Swapping a focused node with a receptacle will transfer focus to the receptacle #1469

Open
ortango opened this issue Sep 27, 2023 · 1 comment

Comments

@ortango
Copy link

ortango commented Sep 27, 2023

Swapping a focused node with a receptacle on another desktop will transfer desktop focus to the receptacle.

Checking IS_RECEPTACLE and setting focus to NULL seems to fix the issue.

@ortango
Copy link
Author

ortango commented Dec 2, 2023

adding a small example:

#window is focused on ^1
$ bspc query -N -n focused.window
0x01200027
#create receptacle on ^2
$ bspc node @^2:/ -i
$ bspc query -N -d ^2 -n .leaf
0x01400013
$ bspc node -s  0x01400013
#check focusedNodeId of desktop ^1
$ printf '0x%X\n' $(bspc wm -d | jq '.monitors[0].desktops[0].focusedNodeId')
0x01400013
#is the receptacle.

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

1 participant