Bug 504829

Summary: kdeplasma-addons applets/comic with multi-screen pops up the full-size comic on the wrong screen
Product: [Plasma] plasmashell Reporter: Duncan <1i5t5.duncan>
Component: Comic widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: cwo.kde, nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.0.0   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Duncan 2025-05-26 17:56:26 UTC
So I'm taking cwo up on his invitation in bug #502432#c8 to file other comic-applet bugs if I find them.  This one has been bothering me for years so I hope he can fix it.

The comic plasmoid has an option to popup a window with the full-size comic in it, using either middle-click  or the middle navigation button.

 Apparently that popup is supposed to be centered on-screen, but...

There has been a long-term bug with that on multi-screen setups, where said window generally (but not always) pops up centered on the same screen consistently for a session, but seems to pick which screen it'll use for a particular session almost at random (tho it does seem to have an inconsistent favorite, which recently seems to be the top left screen tho it didn't used to be).

IMO the /ideal/ would be to let kwin window rules apply to plasmashell windows, with enough information attached to them so the rule could match on specific windows.  Apparently that's broken at least on wayland, unfortunately.[1]

Lacking that, having the window either always appear on the screen the comic widget is on, or on the primary priority screen as configured in kscreen, would at least be better than the current situation where the screen it chooses doesn't seem to be entirely consistent, and all too often it's the worst possible one (as the top-left one is for me ATM, the plasmoid's on the bottom left screen, which is middle priority of my three screens, and the bottom right one is configured as top priority, so why is the comic popup window appearing on the lowest priority top-left screen?).

---
[1]  Having the krunner window be configurable to under-mouse as used to be possible on X, but as has never worked on wayland (I filed a bug on it back when I first switched to wayland, still can't be done AFAIK), would be great!  If window rules would only work on plasmashell windows again... and wayland windows had the window roles that used to make distinguishing specific windows on X work when an app-author had filled in the role, even when multiple windows had the same class and the title was variable...
Comment 1 Duncan 2025-05-26 18:02:13 UTC
CCing cwo, who has been giving the comic plasmoid some much-needed love and updates, recently. =:^)
Comment 2 cwo 2025-05-26 20:00:45 UTC
Thanks for the report! I had a quick look but I have no idea how multi-screen setups work with Plasma.Dialog and couldn't really figure it out from the documentation (or digging arround in the implementation). I also don't usually run a multi-screen setup so testing is a bit of effort. I'll keep it in mind, but don't expect a quick fix.
Comment 3 Nate Graham 2025-05-27 15:13:03 UTC
Plasma.Dialog is deprecated and we should be porting away from it. Doing so may fix some bugs automatically. See https://invent.kde.org/plasma/plasma-desktop/-/commit/b66807da6043adbbad3a820e7175a7203ea8db65