Discover icon indicating copy to clipboard operation
Discover copied to clipboard

Switching Monitor causes overlay to become regular window

Open trigg opened this issue 2 years ago • 1 comments

Steps to Reproduce Steps to reproduce the behavior:

  1. Start up overlay
  2. Plug in another display which, when plugged in, disables the built-in display and runs single-monitor

Expected behavior Window continues to be a Layer-shell window on the new display

Problematic behavior Overlay layer-shell window becomes a regular window with a transparent background

Desktop (please complete the following information): Arch Linux Wayfire started from TTY

Installation Method Direct from git

Additional context Most likely cause is the monitor change event is not caught. If it is, the monitor option might be suspect.

This begs a further question - if the specified monitor doesn't exist should we pick another monitor to display on or not display at all?

trigg avatar Dec 28 '23 17:12 trigg

While grabbing these change events and re-setting the monitor fixes DPI scale changes and resolution changes much better now, it does not fix this.

On top of this, once the monitor the layer-shell was attached to has gone once it no longer renders to the window, even after the monitor returns.

For now I'm working around this by adding exec discover-overlay to my kanshi config which runs a new overlay instance and kills the old one on every monitor change. This is not a fix, but may help users while I work this out.

trigg avatar Feb 03 '24 16:02 trigg

fixed in WM

trigg avatar May 07 '24 22:05 trigg