mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-05 03:46:53 +00:00
Center more wide windows
Be more liberal with what we consider to be a wide window. Another option is having the cutoff be `stack_margin + window_gap` which means we'll center as long as there's no other non-scaled window on the screen.
This commit is contained in:
@@ -130,7 +130,7 @@ ensure_viewport = (meta_window, force) => {
|
||||
// Share the available margin evenly between left and right
|
||||
// if the window is wide (should probably use a quotient larger than 2)
|
||||
let margin = margin_lr
|
||||
if (frame.width > global.screen_width - 2 * margin_lr)
|
||||
if (frame.width > global.screen_width - 3*stack_margin)
|
||||
margin = (global.screen_width - frame.width)/2;
|
||||
|
||||
// Hack to ensure the statusbar is visible while there's a fullscreen
|
||||
|
||||
Reference in New Issue
Block a user