Make window rules no applied to settings

Hi, I’m using Windows Rules to have some applications open only in specific place, where I usually want them. For example I want Dolphin opened on my left monitor, maximized. This works fine to the main window (by setting pos and location). But it’s also applied to all other windows, like Create new folder–and that’s not what I want (especially since these are still forced, when I move the main window to another monitor). Similar issues with other applications.

Is there a way to set it? Things like “Window type” or “Window title” don’t seem to help me. And since it’s Wayland the window position is not remembered after closing it.

Plasma 6.4

Have you tried filtering by “Window Class”?

Combine it with “Window Type” = “Normal Window”.

You can check a window’s class name by either using the “Detect Window Properties” button or by inspecting the “Kwin debug console” application.

Thanks, KWin debug console is a nice thing to know about. However, both of the windows from my example have the same class (resourceClass in the console “org.kde.dolphin”), the same windowType “NET::Normal”, and the role is empty. Nothing I can see to differentiate them beside the window title, and that can be tricky to use in this case, as the title change for each displayed directory. And I didn’t have much luck w/ the name property either, I tried that earlier today for Konsole.

Which Dolphin version are you using?

For me, both the “Create New Folder” and “Create New File” dialogs have a windowRole value of NET::Dialog. Even the “About Dolphin” window has a NET::Dialog value for windowRole.

Maybe it is because I am still running an X11 session?

I just checked on a VM I have running KDE Linux, which ships with a Wayland session, and that is it.

On Wayland the dialogs have the same windowRole as Dolphin’s main window.

I am not sure if this is a bug or intended behavior, considering the architectural differences between X11 and Wayland.

If you believe it is a bug, you can check over https://bugs.kde.org/ to see if someone already reported it and create a bug report if no one reported it yet.

Thanks for checking.

I’ve checked a few more Wayland windows (Konsole, Kate, Firefox, Anki), and all of them share the window type, NET::Normal. I don’t know what that is, I see this enum in QT documentation but it has different values. I doubt it would help much right now w/ the issue anyway.

There is a bug report from last year regarding related issue https://bugs.kde.org/show_bug.cgi?id=490055.

It looks like for now Windows Rules might only be able to differentiate various windows from the same app only by titles.