Force KWin window decorations for podman desktop?

Hi KDE Kommunity,

I am looking for a way to force the rendering of QT window decorations on podman desktop. This is not just for aesthetics, but also for convenience: I have configured Kwin so that a middle click/wheel click on the window titlebar minimizes it, and it makes me incredibly efficient.

When I work on the occasional app that doesn’t use DE window decorations I face some friction because I have to hunt for the minimize button in its own title bar.

I remember window rules existed for this, but none of the combinations I tried seem to work. Could someone please help?

Thanks, and have a great day!

1 Like

Just to clarify: you mean system decorations (aka server side decorations), the ones that KWin adds to windows, right?

Not the decorations Qt draws when the window manager has none.

Also, since this might depend on display server technology, are you on X11 or Wayland?

Sorry, I may have complicated things by using improper terms.

What I meant is what Dolphin and other KDE apps have, but also what electron apps have, for example (e.g. Postman). They all look the same to me, and behave in a consistent way.

I’m on Wayland

Thanks! :slight_smile:

Exact terminology can be difficult, hence the question for clarification :slight_smile:

I am not sure if KWin window rules can be used for that (didn’t find any option on a quick check) but it would definitely result in double decoration as the application would likely still draw its own.

The application might have an option to switch to “system titlebars” or similar.

Google Chrome has that in its context menu on the title bar, Firefox has it in some settings.

Could also be that the toolkit used by the application has support for that via environment variable or similar.

1 Like

@krake covered the best approaches - I’d just add that, based on the bug report comments linked here, KWin window rule methods that worked in the past to force decorations, don’t really work well now. This sounds like it’s generally due to how GTK-based applications behave under Wayland.

1 Like