mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-10-06 11:56:54 +00:00
Don't force the position of the first and last window
This commit is contained in:
@@ -960,7 +960,7 @@ function ensureViewport(meta_window, space, force) {
|
||||
} else if (index == 0) {
|
||||
// Always align the first window to the display's left edge
|
||||
x = 0;
|
||||
} else if (index == space.length-1) {
|
||||
} else if (index == space.length-1 && x + frame.width >= space.width) {
|
||||
// Always align the first window to the display's right edge
|
||||
x = space.width - frame.width;
|
||||
} else if (frame.width > space.width*0.9 - 2*(prefs.horizontal_margin + prefs.window_gap)) {
|
||||
|
||||
Reference in New Issue
Block a user