Bug 377756 - Restore windows to correct position and activity
Summary: Restore windows to correct position and activity
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.9.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 379421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-03-18 02:15 UTC by Christian Muehlhaeuser
Modified: 2018-03-30 18:25 UTC (History)
2 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 Christian Muehlhaeuser 2017-03-18 02:15:48 UTC
On session restore, windows should be restored to the previous position, screen, virtual desktop & activity.

Since 5.9.3 (maybe even 5.9.x) all my apps seem to be restored to the primary screen on a more or less random activity.
Comment 1 Lubos Lunak 2017-04-21 12:03:11 UTC
Git commit 7fca524e0846fd16558a4ac085afa551a9f22c99 by Luboš Luňák.
Committed on 21/04/2017 at 11:59.
Pushed by lunakl into branch 'Plasma/5.8'.

recognize the WM even if given with a full path

Normally kWin is launched simply as "kwin" ("kwin_x11", whatever), but
in some cases it's restart command may be "/usr/bin/kwin", most notably
when KWin restarts itself after a crash. Failing to recognize this client
as the WM leads to KWin starting without any session management restoring.

M  +1    -1    ksmserver/legacy.cpp
M  +5    -2    ksmserver/server.cpp
M  +1    -1    ksmserver/server.h
M  +2    -2    ksmserver/startup.cpp

https://commits.kde.org/plasma-workspace/7fca524e0846fd16558a4ac085afa551a9f22c99
Comment 2 Lubos Lunak 2017-04-21 12:03:31 UTC
Git commit 71908e79626b240d1c32ee88d726c227fa7d6a2d by Luboš Luňák.
Committed on 21/04/2017 at 12:00.
Pushed by lunakl into branch 'Plasma/5.9'.

recognize the WM even if given with a full path

Normally kWin is launched simply as "kwin" ("kwin_x11", whatever), but
in some cases it's restart command may be "/usr/bin/kwin", most notably
when KWin restarts itself after a crash. Failing to recognize this client
as the WM leads to KWin starting without any session management restoring.

M  +1    -1    ksmserver/legacy.cpp
M  +5    -2    ksmserver/server.cpp
M  +1    -1    ksmserver/server.h
M  +2    -2    ksmserver/startup.cpp

https://commits.kde.org/plasma-workspace/71908e79626b240d1c32ee88d726c227fa7d6a2d
Comment 3 Martin Flöser 2017-05-02 07:37:58 UTC
*** Bug 379421 has been marked as a duplicate of this bug. ***
Comment 4 Christian Muehlhaeuser 2018-03-19 22:34:36 UTC
This seems to work a lot better in the latest release! I can't reproduce it with the bunch of common applications I use anymore, so I'd suggest to mark this as RESOLVED. Unless someone objects?
Comment 5 Christoph Feck 2018-03-30 18:25:40 UTC
Thanks for the update; closing.