Summary: | Dual screen: Windows in second screen got their size not saved | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Mathieu MD <mathieu> |
Component: | xinerama | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 4.9.2 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Mathieu MD
2012-11-04 11:54:04 UTC
Aplications re/store their size, it's not the WMs job. For KDE applications, the size is stored per screen geometry. So the critical question here is: -> on what screen does the application start and how does that correspond to the restored size (ie. for the particular case: if it opens on the left screen, the behavior is actually expected) I'm not sure whether kmaimapplication recognizes the multiscreen setup (or unconditionally takes geometry of screen 1) or when it determines the current screen (since the WM will place it according to its oppinion of the active screen, eg. where the cursor is), but the bug is in the way kmainapplications re/stores its geometry. Also see bug #286146 I'd say it's a duplicate *** This bug has been marked as a duplicate of bug 286146 *** > So the critical question here is: -> on what screen does the application start and how does that correspond to the restored size (ie. for the particular case: if it opens on the left screen, the behavior is actually expected) Applications starts on the current screen (where the cursor is). But the size is always the last one of screen 0. As I understand bug 286146, it seems different (size is remembered, but only if saved from screen 0). However, I just tried with Firefox, and it does save its size even from on screen 1. Konsole, Dolphin or Kate do not, which is why I reported this bug. That's pretty much a/the kmainwindow bug then (non KDE application work) To make it very clear: - you open kwrite (not dolphin or konsole, they run in one PID what makes things extra special) on screen 0, resize and close it there and it restores with that size from screen 0 also on screen 1 - you open kwrite on screen 1, resize and close it there and it restores on screen 1 with the last known size from screen 0 That correct? Thomas, that is correct. Is this the same as bug 286146? Thanks. Yupp, seems to be a bug in KMainWindow about when it figures which size to restore (before mapping, thus placement, thus it actually known what screen it ends up on, assuming it's on screen 0 all the time) OK. Is there anything more I can do to help debug it? Check the KMainWindow code for bugs ;-) Otherwise no, stay tuned reg. bug #286146 and try patches whenever they show up (not guaranteed to happen during KDE4 lifecycle, depends on bug complexity) |