Bug 479916 - Windows seem to snap against nothing
Summary: Windows seem to snap against nothing
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.92.0
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-16 20:28 UTC by Steve Cossette
Modified: 2025-02-25 11:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Window Behavior Settings (115.32 KB, image/png)
2024-01-17 11:54 UTC, Steve Cossette
Details
Both Screens (979.34 KB, image/jpeg)
2024-01-17 16:32 UTC, Steve Cossette
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Cossette 2024-01-16 20:28:13 UTC
(Note: I'm not 100% sure this should go in kwin, nor if it is in the right subcomponent of kwin. If I made a mistake, I apologize!)

Seems that, in Plasma 6 (RC1), windows have a tendancy to 'snap' around 1/6th the way down the screen (See video).

It seems to also snap a little below the task bar, but to be honest, that's very likely to be intended.

Video: https://youtu.be/poZ5vH8vUZo
Comment 1 fanzhuyifan 2024-01-17 06:31:53 UTC
Thank you for your bug report and detailed video.

This seems like intended behavior when you have center snap zone enabled. If you go to settings->window management->window behavior->movement, you should see settings for that. Feel free to reopen if your center snap zone is not set to None!
Comment 2 Steve Cossette 2024-01-17 11:53:14 UTC
Correct, it is indeed set to "None".

Also, I noticed something else that might help you pinpoint this issue. I got two monitors. This seems to only happen on the primary monitor. (But that might be intended.... if the feature was enabled that is)

Sending a screenshot of the window behavior settings (Just in case)
Comment 3 Steve Cossette 2024-01-17 11:54:06 UTC
Created attachment 164976 [details]
Window Behavior Settings
Comment 4 fanzhuyifan 2024-01-17 13:05:23 UTC
(In reply to Steve Cossette from comment #2)
> Correct, it is indeed set to "None".
> 
> Also, I noticed something else that might help you pinpoint this issue. I
> got two monitors. This seems to only happen on the primary monitor. (But
> that might be intended.... if the feature was enabled that is)
> 
> Sending a screenshot of the window behavior settings (Just in case)

Could you share a screenshot of both your monitors when this happens? It might be the case that something on the other monitor is causing this behavior, like panels.
Are you on X11 or wayland?

Also I haven't been able to reproduce on my end, so we would need to figure out what is causing this.
Comment 5 Steve Cossette 2024-01-17 16:31:07 UTC
(In reply to fanzhuyifan from comment #4)
> (In reply to Steve Cossette from comment #2)
> > Correct, it is indeed set to "None".
> > 
> > Also, I noticed something else that might help you pinpoint this issue. I
> > got two monitors. This seems to only happen on the primary monitor. (But
> > that might be intended.... if the feature was enabled that is)
> > 
> > Sending a screenshot of the window behavior settings (Just in case)
> 
> Could you share a screenshot of both your monitors when this happens? It
> might be the case that something on the other monitor is causing this
> behavior, like panels.
> Are you on X11 or wayland?
> 
> Also I haven't been able to reproduce on my end, so we would need to figure
> out what is causing this.

Sure thing, uploading now!

We're on Wayland, Fedora 40 will be wayland only as well.
Comment 6 Steve Cossette 2024-01-17 16:32:24 UTC
Created attachment 164986 [details]
Both Screens

The left Konsole window is currently snapped.
Comment 7 Steve Cossette 2024-01-17 16:40:18 UTC
Oh by the way, this morning when I took a screenshot of the "Window Behavior Settings, I freshly logged into Plasma 6 and simply opened systemsettings and spectacle, and it did it.
Comment 8 fanzhuyifan 2024-01-17 16:41:55 UTC
(In reply to Steve Cossette from comment #6)
> Created attachment 164986 [details]
> Both Screens
> 
> The left Konsole window is currently snapped.

Humm interesting. There seems to be nothing that could be causing the window to snap, and I can't reproduce on my end. Do you observe any changes in the snapping you reported if you set center snap zone to a non-zero value?

I am a little out of ideas for now. Would need to think about this a bit.
Comment 9 Steve Cossette 2024-01-17 16:48:12 UTC
(In reply to fanzhuyifan from comment #8)
> (In reply to Steve Cossette from comment #6)
> > Created attachment 164986 [details]
> > Both Screens
> > 
> > The left Konsole window is currently snapped.
> 
> Humm interesting. There seems to be nothing that could be causing the window
> to snap, and I can't reproduce on my end. Do you observe any changes in the
> snapping you reported if you set center snap zone to a non-zero value?
> 
> I am a little out of ideas for now. Would need to think about this a bit.

I went ahead and tried that. I've set the Center Snap Zone to 1px. On the left screen (The one affected), the behavior still occurs, but... as I move the window, it asks like if there's now 2 snap zones right on top of each other (As it snaps, if I move it a tiny bit, you can see the window snap to the following pixel a tiny bit).
On the right screen, nothing snaps still.
Comment 10 Steve Cossette 2024-01-17 16:49:07 UTC
(In reply to Steve Cossette from comment #9)
> (In reply to fanzhuyifan from comment #8)
> > (In reply to Steve Cossette from comment #6)
> > > Created attachment 164986 [details]
> > > Both Screens
> > > 
> > > The left Konsole window is currently snapped.
> > 
> > Humm interesting. There seems to be nothing that could be causing the window
> > to snap, and I can't reproduce on my end. Do you observe any changes in the
> > snapping you reported if you set center snap zone to a non-zero value?
> > 
> > I am a little out of ideas for now. Would need to think about this a bit.
> 
> I went ahead and tried that. I've set the Center Snap Zone to 1px. On the
> left screen (The one affected), the behavior still occurs, but... as I move
> the window, it asks like if there's now 2 snap zones right on top of each
> other (As it snaps, if I move it a tiny bit, you can see the window snap to
> the following pixel a tiny bit).
> On the right screen, nothing snaps still.

Sorry, asks should've been "acts"... 

And if it helps:
Operating System: Fedora Linux 40
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
Kernel Version: 6.8.0-0.rc0.20240112git70d201a40823.5.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT