Skip to content

Some app windows resize oddly when monitor focus changes #498

@crispinb

Description

@crispinb

Describe the bug

In at least a couple of terminal apps (wezterm & kitty), switching focus to a different monitor sometimes causes the app's windows (on the original monitor) to resize, causing their text to distort.

To Reproduce
Steps to reproduce the behavior:
(in a multi-monitor configuration)

  1. open a window in an app affected by this issue (eg. wezterm)
  2. change focus to another monitor (using either keyboard or mouse)

Expected behavior

Nothing should happen other than monitor & window focus change,
but the new window on the monitor losing focus changes to a new size, distorting
text and often leaving an outline of the original size.

The window goes back to its original size when focus returns to the monitor it is on.

Screenshots
First ss shows the wezterm window with the monitor it is on having focus
Second ss shows how it looks when focus is moved to another monitor

original _res
new_size

System information:

Distribution: Fedora Linux
GNOME Shell 43.3
PaperWM branch/tag: develop
PaperWM commit: 7fa25a6072a8ccd51ecbf154d030f23d2ed98d4e
Enabled extensions:
- impatience@gfxmonk.net
- clipboard-history@alexsaveau.dev
- paperwm@hedning:matrix.org
- vertical-overview@RensAlthuis.github.com
- background-logo@fedorahosted.org
- appindicatorsupport@rgcjonas.gmail.com

Additional context

I think I've only experienced this with terminal apps - wezterm and kitty, but the latter only infrequently. I would intuitively have attributed this problem to those apps and submitted it to their repos, except for the fact that it only happens when PaperWM is enabled.

This doesn't always happen, but I haven't found an obvious discriminating factor.

The windows never resize (nor does text distort) when the terminal window is full-screen on the original monitor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesirable behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions