Bug 484182 - Windows position "Force" rule does not work on "background mode" applications (yakuake; konsole in background mode) after window is hidden and shown again
Summary: Windows position "Force" rule does not work on "background mode" applications...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 19:33 UTC by splotchy_trivial737@slmail.me
Modified: 2024-07-03 13:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description splotchy_trivial737@slmail.me 2024-03-21 19:33:33 UTC
SUMMARY
A window position "Force" rule targeting Yakuake works on initial display.  However, once yakuake is dismissed (default keybinding of F12) and shown again, the position reverts to the default value as configured in Yakuake.


STEPS TO REPRODUCE
1. In Plasma 6 Wayland session, specify a window rule for yakuake. E.g., set the "Y" coordinate offset to 120.
2. Start yakuake, the application is shown with the y-coordinate offset as intended.
3.  Hide yakuake and then show it again.

OBSERVED RESULT
The window rule no longer has any effect. I.e., the yakuake application is displayed with the default 0 y-coordinate.

EXPECTED RESULT
The window rule should continue to have effect. I.e., the yakuake application should continue to be displayed (when visible) with y-coordinate offset of 120.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed / Plasma 6.0.2
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Comment 1 Nate Graham 2024-04-11 20:57:52 UTC
Might be a Yakuake issue?
Comment 2 splotchy_trivial737@slmail.me 2024-04-12 04:38:30 UTC
(In reply to Nate Graham from comment #1)
> Might be a Yakuake issue?

In Wayland, applications can choose to ignore window rules?

Short of fixing the issue, how would one confirm/deny whether or not this is a yakuake issue?  And if it is, is there some action I need to take to ensure
Comment 3 goo 2024-05-31 07:46:22 UTC
This also happens in konsole when launched in background mode. If I launch "konsole --background-mode" then set a force rule targeting the window or application, after the window has been dismissed and shown again via ctrl-shift-F12, konsole doesn't take into consideration the configured rule.

This still happens both in yakuake and konsole 24.05.
Comment 4 splotchy_trivial737@slmail.me 2024-05-31 14:34:43 UTC
confirmed on plasma 6.0.4. updated description and changed product to kwin (since it's affecting multiple applications that have something like konsole's background-mode).
Comment 5 splotchy_trivial737@slmail.me 2024-07-03 13:28:21 UTC
(In reply to Nate Graham from comment #1)
> Might be a Yakuake issue?

This bug is still present in version 6.1.1.  And given how both Konsole and Yakuake are affected, this seems much more likely to be a KWin issue. Are there any additional details that I can share that would make it easier to find and resolve the bug?