Bug 469426 - Cannot move windows past left or top of desktop
Summary: Cannot move windows past left or top of desktop
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-06 19:05 UTC by mike wyatt
Modified: 2024-01-28 16:46 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mike wyatt 2023-05-06 19:05:43 UTC
SUMMARY
When working on a small screen, it's nice to be able to move the window off the screen. Say you're using an app and only care about one panel in it, but you cannot change where that panel is.

Windows are allowed to be moved past the right and bottom of the display, so it should be possible to allow it on the left and top as well.

STEPS TO REPRODUCE
1. Use a small screen
2. Try to move a window past the left of the screen for some breathing room
3. Try not to tear your hair out

OBSERVED RESULT
I ended up switching computers because my experience in KDE was so claustrophobic and frustrating.

EXPECTED RESULT
I can move a window past the left, just like I can move it past the right.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
https://www.youtube.com/watch?v=mQFiLkNiSgs
Comment 1 Chiitoo 2023-05-07 19:24:32 UTC
At last, someone else who is seeing this.  :]

I'm using KWin with LXQt on Gentoo Linux here, and so far I haven't met anyone else who is able to re-produce this.

There's no need for a small screen, at least for me (1440p), and I'm unable to move any window past the top as well as the left side (single monitor or dual monitor set up both).

Additionally, my panel is acting weird if placed on the top or the left side: even if set to hide automatically, it acts as if it is always visible.  That is, it's impossible to select anything below it, and clicks go to the panel even if it is still visually hidden.

Further, if set to be animated, it will always be instantaneous instead of smooth as it should be, and if set to have a visible thin margin, the panel never goes completely into hiding (it kind of moves a little bit).

I think this started around 5.27.4; unfortunately I haven't had the chance to find the exact commit.
Comment 2 Chiitoo 2023-05-07 19:44:43 UTC
Oh and while normally the panel would come out of hiding when the pointer gets to the very edge of the screen, it acts as if the edge is on the opposite border instead, so moving the pointer to the area the panel is drawn at will already trigger unhiding it.
Comment 3 Andreas Sturmlechner 2023-05-08 14:08:51 UTC
(In reply to mike wyatt from comment #0)
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: 
> (available in About System)
> KDE Plasma Version: 
> KDE Frameworks Version: 
> Qt Version: 

You were not able to provide any of this information?
Comment 4 mike wyatt 2023-05-08 21:03:33 UTC
Trying to get that now. I kid you not, between posting this and today my Parallels trial expired so I cannot boot the VM at the moment.
Comment 5 Nate Graham 2023-05-15 20:02:44 UTC
This should be possible to do. I can easily move windows to be partially off the left side of the screen by dragging them from their titlebars.

To get a window to be partially off the *top* of the screen is a bit less obvious since the window titlebars are also on top. But it's pretty easy: Hold down the Meta (AKA Super AKA Windows) key and drag the window from anywhere. Boom, now you can put it anywhere you want.
Comment 6 Chiitoo 2023-05-15 20:34:53 UTC
Right, it should, and was, before an update to KWin.

I guess I'll really have to go digging where it starts and then the why.  :]

Thanks!
Comment 7 Chiitoo 2023-05-15 20:37:31 UTC
Er, KWin and friends I meant to say; not sure it's KWin specifically, but in one of my quicker tests the behaviour returned to normal for me when downgrading KWin and friends to below 5.27.4 if I recall correct-like.

Will be a bit more work at this point to go older than that on Gentoo, but if I find enough time...
Comment 8 mike wyatt 2023-05-23 03:19:40 UTC
(In reply to Andreas Sturmlechner from comment #3)
> (In reply to mike wyatt from comment #0)
> > SOFTWARE/OS VERSIONS
> > Linux/KDE Plasma: 
> > (available in About System)
> > KDE Plasma Version: 
> > KDE Frameworks Version: 
> > Qt Version: 
> 
> You were not able to provide any of this information?

KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.2.10-1-aarch64-ARCH (64-bit)
Graphics Platform: X11

Hardware
Processors: 4
Memory: 3.8 GiB of RAM
Graphics Processor: virg/
Product Name: Parallels ARM Virtual Machine
Manufacturer: Parallels International GmbH.
Product Name: Parallels ARM Virtual Machine
System Version: 0.1
Comment 9 Chiitoo 2023-05-28 11:00:28 UTC
I tried going back to Plasma bits at 5.27.0, and it happened there as well, and unfortunately did not have time to bisect older than that since I'd need to start bringing the Frameworks with it to be able to compile things, and scavenge more things from git history.

If I remember right-like, last version we had packaged on Gentoo Linux that worked correctly for me was 5.26.5.

For completeness, I also recorded a video that shows an additional oddity when trying to push a window beyond left or top, and then resizing said window:

https://www.youtube.com/watch?v=uxSCPU2vjoY

That is with Plasma 5.27.5 and Frameworks 5.106.0 on a Gentoo Linux virtual machine with a freshly created user account.

I could not re-produce the panel auto-hide oddity that I have going on with LXQt, so that is another mystery to be solved, but it also only happens on the top and left.  I did notice some other funky things with Plasma panels, but that's a whole different story.  :]
Comment 10 mike wyatt 2023-05-29 19:34:00 UTC
I just installed Arch ARM in a new VM, using UTM (technically QEMU), same result as in Parallels. Cannot move windows past the left or top of the screen. This was before doing any changes to my DE.
Comment 11 Chiitoo 2023-06-14 18:44:46 UTC
Sooo I'm not sure if I've just gone completely mad from too much compiling, while hunting for a cause for an issue with Wine [1], but yesterday this issue disappeared for me, and then returned today after restarting X11.

I couldn't find what made the issue disappear, and I couldn't find what made it re-appear either.

At one point I remembered that I accidentally compiled a bunch of other things with the testing CFLAGS, which I often do when I forget I set them manually.  Yep, a patch had been added to KWin just around that time, and was re-compiled with '-march=x86-64 -O2 -g', and then again with my usual flags later, which include '-march=znver4', as I tried re-compiling without said patch.

The issue with Wine seems to be connected to znver4 somehow as well, and so I tried compiling KWin with x86-64 again, as well as with zenver3, and sure enough, the issue went away again with either of those.

I have no idea if there could be multiple sources for this issue, but on my part, it certainly seems like a GCC bug, where I'll be reporting this next.

1. https://bugs.winehq.org/show_bug.cgi?id=55007
Comment 12 mike wyatt 2024-01-28 16:46:26 UTC
So I've used Arch, Debian, and Fedora, all have this issue. The common thread between them is that they're running on aarch64