Bug 410899 - Desktop Grid switches Activity
Summary: Desktop Grid switches Activity
Status: RESOLVED DUPLICATE of bug 301447
Alias: None
Product: kwin
Classification: Plasma
Component: effects-desktop-grid (show other bugs)
Version: 5.12.8
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-14 14:40 UTC by kroppy1q
Modified: 2019-08-27 18:09 UTC (History)
1 user (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 kroppy1q 2019-08-14 14:40:29 UTC
SUMMARY
Very similar to bug 242555 (resolved). When I activate Desktop Grid desktops and applications are shown from my current activity, but when clicking it behaves as if applications from all activities are shown. Difference with bug 242555 is that "Use Present Windows effect to layout the windows" is unchecked, however even with it checked there is still some bugginess with dragging windows around.

STEPS TO REPRODUCE
1. Have at least 2 desktops and two activities
2. Uncheck "Use Present Windows effect to layout the windows" for the Desktop grid effect.
3. Have a window open full screen in activity 1 on desktop 1, and another one full screen on activity 2 desktop 2.
4. Activate Desktop Grid on activity 1, click on (empty) desktop 2

OBSERVED RESULT
Switch to activity 2, desktop 2, focus on the open application there.

EXPECTED RESULT
Switch to the empty desktop 2 of activity 1.

Note, when the application are on the same desktop but different activities, it seems to switch to the one that had the focus most recently. Also dragging windows around in Desktop Grid suffers from the same issue.

As a result, using activities together with desktop grid is almost impossible. A somewhat OK solution seems to be to check "Use Present Windows effect to layout the windows" (as supposedly fixed in bug 242555), but then a similar issue is still present:
STEPS TO REPRODUCE
1. Have at least 3 desktops and two activities
2. Check "Use Present Windows effect to layout the windows" for the Desktop grid effect.
3. Have a window open full screen in activity 1 on desktop 1, and another one full screen on activity 2 desktop 2.
4. Activate Desktop Grid on activity 1.
5. Drag the empty desktop 3 to the empty desktop 2, switching them. Then drag empty desktop 3 to empty desktop 2 again, switching them back.
OBSERVED: Situation restored to exactly as between step 4 and 5.
EXPECTED: Switched to activity 2
6. Still in desktop grid (showing activity 2 now), clicking on desktop 1 will bring you to activity 1 (with the focus on the window there) and clicking on desktop 2 will bring you to activity 2 (with the focus on the window there).

SOFTWARE/OS VERSIONS
openSUSE Leap 15.0
KDE Plasma Version: 5.12.8
KDE Frameworks Version: 5.45.0
Qt Version: 5.9.4

Other possibly related bugs: bug 242555 bug 374481 bug 386769
Comment 1 Vlad Zahorodnii 2019-08-15 13:15:05 UTC
Hmm, seems like bug 301447.
Comment 2 Vlad Zahorodnii 2019-08-24 22:37:46 UTC
Yeah, I forgot to backport 0c3047a8f1d4a70f39250c759224a7dfab72a76b to Plasma/5.12.

I'll do that a bit later.
Comment 3 Vlad Zahorodnii 2019-08-27 05:26:32 UTC
I backported 0c3047a8f1d4a70f39250c759224a7dfab72a76b to Plasma/5.12.

The fix will be available in 5.12.9, which is released on Tue 2019-09-10.

https://community.kde.org/Schedules/Plasma_5

*** This bug has been marked as a duplicate of bug 301447 ***
Comment 4 kroppy1q 2019-08-27 18:09:22 UTC
Wonderful! Thank you!

Do you know if this also solves the issues with dragging windows/desktops around?