bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

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

Open ortango opened this issue 1 year ago • 1 comments

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 avatar Sep 27 '23 04:09 ortango

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.

ortango avatar Dec 02 '23 17:12 ortango