Skip to content
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

Maximized window width should respect horizontal margin #975

Open
lost-melody opened this issue Dec 3, 2024 · 0 comments
Open

Maximized window width should respect horizontal margin #975

lost-melody opened this issue Dec 3, 2024 · 0 comments
Labels
bug Undesirable behavior

Comments

@lost-melody
Copy link
Collaborator

lost-melody commented Dec 3, 2024

Describe the bug
Now Super+= can increase the window width until screen_width - 2*horizontal_margin, and Super+F sets the width to screen-width - 2*minimum_margin, where minimum_margin is initialized as Math.min(15, prefs.horizontal_margin).
And if I switch to the maximized window which is off screen quickly (without showing the minimap), its width will be decreased to a smaller value, otherwise the width remains unchanged. This only happens when an external monitor is connected.

Plus, when I swipe the view quickly, the first or last window will "snap" to the screen edges, with a gap of minimum_margin but I think this should be horizontal_margin. Also when I switch the focus mode from EDGE to DEFAULT it will snap to screen edges with a gap of window_gap instead of horizontal_margin.

To Reproduce
Steps to reproduce the behavior:

  1. Set horizontal margin to 64.
  2. Maximize a window by Super+F (its width would be screen_width - 2*minimum_margin, while I believe it should be screen_width - 2*margin).

Expected behavior
Horizontal margin and vertical margin define the maximum view region in the screen so I believe the active window should never exceed it.

System information:

Distribution: Arch Linux
GNOME Shell: 47.2
Display server: Wayland
PaperWM version: 47.1.0
Enabled extensions:
- appindicatorsupport@rgcjonas.gmail.com
- user-theme@gnome-shell-extensions.gcampax.github.com
- Bluetooth-Battery-Meter@maniacx.github.com
- lockkeys@vaina.lt
- AlphabeticalAppGrid@stuarthayhurst
- paperwm@paperwm.github.com
- moveclock@kuvaus.org
- custom-osd@neuromorph
- kimpanel@kde.org
- runcat@kolesnikov.se
- blur-my-shell@aunetx
- gnome-ui-tune@itstime.tech
@lost-melody lost-melody added the bug Undesirable behavior label Dec 3, 2024
@lost-melody lost-melody changed the title Maximized window width and long swipe gestures should respect horizontal margin Maximized window width should respect horizontal margin Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesirable behavior
Projects
None yet
Development

No branches or pull requests

1 participant