PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Keeping modal windows above parent apps

Open damiandudycz opened this issue 4 months ago • 5 comments

Is your feature request related to a problem? Please describe. When a modal window appear on top of some app, it scrolls along when I'm switching windows and is kept on top of the screen. For example in Gnome Text Editor if I open Document properties. This behavior is a bit annoying and makes it hard to navigate.

Describe the solution you'd like When this type of window is created if should stay displayed on top of it's parent application, and not scroll when I switch to another app.

damiandudycz avatar Sep 16 '25 19:09 damiandudycz

Here's the secret: it is staying above the parent app... but the parent app isn't where you think it is.

When you scroll an app away it doesn't actually exit the desktop's coordinate system, it stays put on the side and a clone is moved out of view. This is also the reason why PaperWM has to set the wallpaper itself -- to hide windows that are supposed to be off-screen, because Mutter won't actually let us move them that far.

Thesola10 avatar Sep 16 '25 20:09 Thesola10

Here's the secret: it is staying above the parent app... but the parent app isn't where you think it is.

When you scroll an app away it doesn't actually exit the desktop's coordinate system, it stays put on the side and a clone is moved out of view. This is also the reason why PaperWM has to set the wallpaper itself -- to hide windows that are supposed to be off-screen, because Mutter won't actually let us move them that far.

Thanks, that's the cool fact :). Although at the end, looking at this from user perspective - would it be possible to make these popups also behave like this?

damiandudycz avatar Sep 17 '25 15:09 damiandudycz

Thanks, that's the cool fact :). Although at the end, looking at this from user perspective - would it be possible to make these popups also behave like this?

Hard to say, something tells me it would have been done already but this is worth looking at

Thesola10 avatar Sep 17 '25 15:09 Thesola10

Maybe there's a way of making all modal windows non-modal? That way popups will behave the same way as any other window, and I think that's a lot less annoying.

ldipenti avatar Sep 20 '25 22:09 ldipenti

I don't think this is desirable, since on Wayland afaict menu dropdowns are also classified as modals. Wine's Wayland driver doesn't use modals and dropdowns are hell to use with PaperWM enabled.

Thesola10 avatar Sep 22 '25 08:09 Thesola10