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 and long swipe gestures should respect horizontal margin #975

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

Comments

@lost-melody
Copy link
Collaborator

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*window_gap. But when the margin is greater than gap (in my case, margin=64 and gap=20) it is incorrect.
And if I switch to the maximized window which is off screen quickly (without showing the minimap), its width screen_width - 2*gap will be decreased to screen_width - 2*margin, otherwise the width remains unchanged.

Plus, when I swipe the view quickly, the first or last window will "snap" to the screen edges, with a gap of window_gap 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 and gap between windows to 20.
  2. Maximize a window by Super+F (its width would be screen_width - 2*gap, while I believe it should be screen_width - 2*margin).
  3. Switch to other windows until it is off screen.
  4. Switch back to the window quickly before the minimap showing (its width would be decreased to screen_width - 2*gap).

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:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- AlphabeticalAppGrid@stuarthayhurst
- [email protected]
- [email protected]
- custom-osd@neuromorph
- [email protected]
- [email protected]
- blur-my-shell@aunetx
- [email protected]
@lost-melody lost-melody added the bug Undesirable behavior label Dec 3, 2024
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