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
[RFC] config: use automatic placement by default #1772
Conversation
I don't know about this. For me personally as a user it would actually be a surprise to have that as a default setting. |
Openbox enables "smart" placement by default, but separates the concept of centering from the actual policy (which is only "smart" or "under mouse") and will center each new window in its optimal area. It would not be difficult to adapt an option centering for smart placement, but would require a change in configuration that makes things a bit more complicated. Automatic placement was born because I found the labwc default surprising. Most other compositors and X11 window managers I've used make some attempt to vary new window positions as clients are launched. |
Other thoughts @johanmalm @tokyo4j @jlindgren90 ? |
I'm fine with enabling smart placement by default, but I think it should be after I personally like the placement policy of Windows or KWin which place the first window at center and the second window at center too but shifted to bottom-right a bit. |
I haven't tested the smart placement yet myself, but I like the idea of enabling it by default if it feels intuitive enough. Maybe after 0.7.2? |
I have smart placement, and sometimes i find it hard to find these small windows at some small free space in a desktop. As in wayland one cannot position these (special-case) windows it is somehat weird to have these open at random places ;/ OTOH, opening every window in the center is IMO more disturbing than some windows that would be nice to get center are opened at random places. |
Just speaking as a user here, what I like about default open-at-center is that I can predict what happens. I open a window and already know where it will be. With smart placement that is not the case and I have to go on a hunt for the window. The always-center default makes it much easier to understand the rules of the compositor in my opinion. |
Startup windows a.k.a. "splash screens"? I would think these ought to be excluded from the smart placement. |
Are there any adjustments that could make the smart placement more predictable? Such as, only use smart placement if there is an obvious/large blank area to place the window in? I recall Metacity had a design goal of having just one placement scheme that was "good enough" for most use cases -- it would be nice if we could achieve that. |
I really like automatic placement, but don't think we should change the default behaviour. |
That's exactly the reason why I use the "cursor" placement, otherwise I had often to move it all over the monitor to reach the opened window. Btw this is still on my wishlist ;) |
I just implemented KWin's algorithm which tries to shift a window not to cover existing ones when https://github.com/tokyo4j/labwc/tree/kwin-placement I think something like this, or a mix of |
Works nicely: |
@ahesford Are you okay if we close this one leaving 'center' as default? |
Sure thing. |
I said:
But this was wrong. Xfce4 enables smart placement and opens the first window at top-left corner by default, but it has configurable "minimal window size to trigger smart placement" so tiny windows like dialogs are opened at center. As a former xfce4 user, now I'm not strongly against enabling the current |
I’ve added placement-policy to labwc-tweaks as a convenient way of changing it. |
Automatic placement has been in place for a couple of releases now, and I think it makes the compositor much more usable to have windows try to avoid collisions rather than centering everything. Maybe it's time to switch the default policy.