Keep window and its size when switching virtual desktops

Hi!

I have primary and secondary screen. I want to have Zulip chat window on my secondary screen open permanently, even when switching virtual desktops.
There’s an options to display a window on all desktops, which works, but with a nuisance that, when I want to resize a window, I have to do it 6 times on each virtual desktop separately.

I also tried “Virtual Desktops Only on Primary” from KWin Scripts, but it doesn’t seem to work. Switching virtual desktops with this option enabled still affects both screen. I tried rebooting too.

Is that behaviour of Desktops > All Desktops even intended? Maybe I should report this as a bug?

Hello and welcome back!

I guess what you want is probably to toggle the “Switch desktops independently for each screen” option in Virtual Desktops settings, so you just make secondary screen always stay on the same one. Maybe the KWin script also only works with this option enabled, and what it truly does is preventing from switching on secondary monitors (e.g. when you try to switch with focus on those)?

I think the behaviour is intended for the use-case of having an app still be present on all desktops, but with different layouts with other apps.

I can’t seem to find “Switch desktops independently for each screen” option, could you point me where it is? Maybe it’s a new option, I haven’t updated for a week or two. .-.

It’s new from Plasma 6.7, which you might not have if you are on an LTS distro. Anyway, it’s here:

Ah, I’m on 6.6, but my distro upstream has 6.7, I’ll update then, thank you.

you can try to pin the application to All desktops and then when you switch desktops it remains in place.

click on the window icon in the title bar for “more actions” and choose move to desktop… select all desktops.

That’s what they did, the thing is when the window is snap-tiled, it doesn’t carry position between virtual desktops somehow. I just noticed it carries normally otherwise (and maximised state too) so that might be a bug?

Oh, you’re right! Thanks for noticing that. I’m pretty sure it’s a bug then.

After a quick search, it is indeed already reported here:
https://bugs.kde.org/show_bug.cgi?id=518619

It looks like this might actually be intended behaviour implement in MR kwin#6893.

Oh, thanks for pointing it out. A comment on the MR linked to the more complete https://bugs.kde.org/show_bug.cgi?id=505684 complaining about the change, so this might go back under discussion sometime.

I made a topic to open-up a discussion on that: