Bug 381666 - Cascade and Random placement are swapped
Summary: Cascade and Random placement are swapped
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.10.2
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-26 08:37 UTC by Michael D
Modified: 2021-08-20 22:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kwinrc with WindowPlacement set to Random (3.09 KB, text/plain)
2021-08-02 00:07 UTC, Timothy B
Details
Video of Cascade and Random window placement modes (1.34 MB, video/mp4)
2021-08-02 00:20 UTC, Timothy B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael D 2017-06-26 08:37:58 UTC
When I select Casecade window placement, windows are randomly placed on the screen (from what I can tell, at least), and when I select Random, they are cascaded.
Comment 1 Martin Flöser 2017-06-27 04:58:20 UTC
I cannot reproduce. Selecting cascade works as expected. Please note that some windows request a position and thus are not placed by KWin.
Comment 2 Michael D 2017-06-27 06:59:48 UTC
Weird. This happens on both of my KDE Neon User Edition systems. I just tried it again after a clean reboot. I am invoking applications that do not request a special position, as far as I know (e.g. Okular).
Comment 3 Ethan Black 2018-09-15 23:23:18 UTC
This problem also happens to me on systemsettings5 v. 5.13.5

I've tested this with multiple KDE applications.
Comment 4 Ethan Black 2018-09-15 23:25:08 UTC
(In reply to ninja53975 from comment #3)
> This problem also happens to me on systemsettings5 v. 5.13.5
> 
> I've tested this with multiple KDE applications.

I'm running Debian testing. I switched from Debian stable, following the instructions at debian.org.
Comment 5 Michael D 2018-09-16 09:50:17 UTC
I'm now on Manjaro testing and it works for me, making think that it's a Debian-related issue.
Comment 6 Martin Flöser 2018-09-16 13:55:23 UTC
Setting to worksforme as of latest comment.
Comment 7 Timothy B 2021-07-25 00:04:19 UTC
Reopening the issue because I can reliably reproduce this on my system. This behavior has not changed since I started using Plasma and KWin with version 5.17 on Manjaro. This behavior occurs in other systems, regardless of hardware, distro, display driver, kernel version, etc. being used.

I currently have the window placement setting set to Random to let KWin place new windows in a cascading layout, which is what I want. The Placement value in my kwinrc at ~/.config also matches exactly to whatever setting I chose in the dropdown menu.

I believe this can be relatively easy to fix because I think this bug is caused by the two labels being shuffled around unknowingly to whoever worked on that feature.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.12.19-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: Radeon RX 570 Series
Comment 8 David Edmundson 2021-08-01 23:42:41 UTC
Please can you include your ~/.config/kwinrc and a screenshot
Comment 9 Timothy B 2021-08-02 00:07:41 UTC
Created attachment 140455 [details]
kwinrc with WindowPlacement set to Random

While I was recording my screen to show you the reported behavior a moment ago, I discovered that the Cascade window placement mode apparently works as intended, but Random places new windows in a similar fashion, not in an unpredictable spot on the screen as one would expect. Anyway, I've attached my kwinrc file with this comment.
Comment 10 Timothy B 2021-08-02 00:20:12 UTC
Created attachment 140456 [details]
Video of Cascade and Random window placement modes
Comment 11 David Edmundson 2021-08-02 08:51:40 UTC
>kwinrc with WindowPlacement set to Random

contains the line:
Placement=Cascade

Which sounds like the KCM is saving things wrong, but I couldn't reproduce an issue locally
Comment 12 Timothy B 2021-08-02 15:13:55 UTC
(In reply to David Edmundson from comment #11)
> >kwinrc with WindowPlacement set to Random
> 
> contains the line:
> Placement=Cascade
> 
> Which sounds like the KCM is saving things wrong, but I couldn't reproduce
> an issue locally

Apologies for the oversight. I did set my window placement mode to Cascade right before submitting the attachment, and I forgot that I made the change at the time of uploading my kwinrc file.

Since you can't reproduce the behavior I described, maybe I should open a new bug ticket addressing the not-so-random-enough behavior of the Random window placement setting.
Comment 13 David Edmundson 2021-08-20 22:14:31 UTC
>Since you can't reproduce the behavior I described, maybe I should open a new bug ticket addressing the not-so-random-enough behavior of the Random window placement setting.

Ok.