Fullscreen window loses fullscreen after opening a dialogue window

Hi there.

On hyprland 0.56 and below:

I open a window in fullscreen, let’s say gimp. Now I choose “save as”, the dialogue opens (in fullscreen mode). Hitting Esc closes this dialogue and gimp is no longer in fullscreen mode, but tiled.

What I would expect is this:

  • The dialogue should be floating, not fullsize (so I can see the underlying fullsized gimp window)
  • gimp should stay fullsized after closing the dialogue

This would be my desired behavior.

I tried on_focus_under_fullscreen = 0, no luck.

I tried exit_window_retains_fullscreen = true. Now the gimp window gets fullscreen again. But in any other situation any window will get fullscreen, when focusing after closing a fullscreen window. That’s not, what I want.

Using hyprctl clients I can see, that gimp already loses fullscreen, when the dialogue opens (and takes over the fullscreen mode).

Any hint, how I can achieve my desired behavior?

How can I match a dialogue window of gimp (or other programs) in a window rule to force it to floating mode?

Regards

Peter

is this exclusive to gimp? I just tried with dolphin and it works just fine

Ah, this was the key hint for me.

Not only gimp, other programs, too. But not dolphin. Dolphin works as expected.

Then I realized, that I caused the gimp fail by myself by adding a window rule to open gimp in fullscreen mode on startup:

hl.window_rule({match = {class = "gimp"}, fullscreen = true})

This rule matches to all the dialogues, too. So even they opened fullscreen.

And this rule I have for all the programs, that as a result are not working as expected now.

Now I have to find out, how to match the main window of these programs but not their dialogues. I will try this in a few hours.

Thank you very much!

Best regards

Peter

This is my solution. I changed my window rule from

hl.window_rule({match = {class = "gimp"}, fullscreen = true})

to

hl.window_rule({match = {class = "gimp", float = false}, fullscreen = true})

gimp starts fullscreen but not its (floating) child windows (e.g. “save as”).

This works for gimp, but even for Inkscape, Writer, Calc, Okular, Gwenview …

I could have used initialTitle instead of float, too. But float is easier and works.

So easy :slight_smile:

So thanks again to vaxry

Peter