bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

Node placement in monocle mode uses monocle dimensions with longest-side scheme

Open OctarineSourcerer opened this issue 7 years ago • 3 comments

When in monocle mode, new nodes created are not placed where they would be if the same window was created outside of it. In the example image here, I have 3 windows open. I go into monocle mode, focusing the leftmost window. I create a new window, and exit monocle mode. This new window should, in my mind, be placed underneath the initial window, as it would be if I'd created it outside monocle mode. It is, however, placed to the right of that window.

Hope the graphic clears it up! image

OctarineSourcerer avatar Mar 21 '19 15:03 OctarineSourcerer

Try to use alternate scheme.

bspc config automatic_scheme alternate

The default longest_side is worked as expected, I think.

cglogic avatar Mar 23 '19 17:03 cglogic

It's probably choosing a vertical split because it's using the window's monocle dimension instead of the tiled dimension. So if you open multiple windows, it's all gonna be vertical.

mdutra avatar Mar 24 '19 15:03 mdutra

@cglogic That does seem to have the more intuitive behaviour, and in trying to quickly simulate some windows opening and closing, alternate in most cases follows longest-side's behaviour.

I think @mdutra is right about the monocle dimensions being used though, and I'd argue it's a little unintuitive. alternate avoids the this by not using size, and is a viable alternative, but I think the issue with longest-side remains.

I'd propose that splitting in monocle should use the tiled dimensions, as the effects of splitting are only seen when outside of monocle mode. Happy to hear any reasons why that shouldn't be the case though :) I'll rename the issue appropriately

OctarineSourcerer avatar Mar 25 '19 16:03 OctarineSourcerer