Bug 488518 - no "preview" when dragging windows to screen edge
Summary: no "preview" when dragging windows to screen edge
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: Quick Tiling (other bugs)
Version First Reported In: 6.0.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-15 09:31 UTC by Alberto Salvia Novella
Modified: 2025-01-17 11:57 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 Alberto Salvia Novella 2024-06-15 09:31:44 UTC
SYSTEM
- kwin 6.0.5-2
- plasma 6.0.5.1-2
- qt 6.7.1-1

REPRODUCING
1. Move a window to the screen edge.
2. RESULT: screen edge doesn't highlight, but it snaps.
3. Move the window elsewhere.
4. RESULT: the window freezes and crashes, no matter the software.
5. On System Settings, change the color theme.
6. RESULT: screen edges highlights work again, but only till reboot.
Comment 1 fanzhuyifan 2024-06-16 03:29:24 UTC
Hi, thank you for your bug report.

> 1. Move a window to the screen edge.
> 2. RESULT: screen edge doesn't highlight, but it snaps.
> 5. On System Settings, change the color theme.
> 6. RESULT: screen edges highlights work again, but only till reboot.

Could you upload a screen cast demonstrating the issue? 

The screen edge highlighting is only supposed to work when there is an action configured for the edge. Do you have any actions configured for that edge/is there a hidden panel on that edge?

Also are you on wayland or X11?

> 3. Move the window elsewhere.
> 4. RESULT: the window freezes and crashes, no matter the software.

Could you open a separate bug report for this and attach a backtrace? Thanks.
Comment 2 Alberto Salvia Novella 2024-06-16 16:45:00 UTC
Let me check...
Comment 3 Bug Janitor Service 2024-07-01 03:47:18 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Alberto Salvia Novella 2024-07-11 04:32:54 UTC
Screencast:
https://youtu.be/ebwsfDmvWoM
Comment 5 Alberto Salvia Novella 2024-07-11 04:33:25 UTC
On X11.
Comment 6 fanzhuyifan 2024-08-03 03:45:32 UTC
Hi, currently the screen edge highlighting is only supposed to work when there is an action configured for the edge. In your case there are no actions/hidden panels on those edges, so the effect does not show.
Comment 7 Alberto Salvia Novella 2024-08-03 13:15:26 UTC
I don't mean that highlight. But the one that appears when you want to snap a window into a corner.
Comment 8 Alberto Salvia Novella 2024-08-03 13:16:11 UTC
And I know it is not intentional because, under unknown circumstances, it does appear!
Comment 9 Bert 2025-01-16 09:50:31 UTC
I have this issue as well since I did a clean install. There is no "preview" of where a window will snap when moving it to the edge of the screen, but sometimes, for unknown reasons it will start to work again.
More importantly; sometimes when moving a window to the top edge of the screen, the whole system will freeze and remain so. The only way to unfreeze it, is to do a hard reset (power button).

Operating System: Arch Linux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 31.0 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT
Comment 10 Bert 2025-01-16 09:51:49 UTC
Sorry, forgot to mention I also found some people having this issue on reddit: https://www.reddit.com/r/kde/comments/1b2djt5/hard_freeze_when_moving_windows_to_edge_of_screen/
Comment 11 Bert 2025-01-16 11:00:59 UTC
Also to add. Setting the snap zones* to "none" doesn't help and it doesn't seem to disable snapping. In fact, it seems to increase the likelihood of the system freezing?

*) in Settings > Window Management > Window Behaviour > Movement
Comment 12 Bert 2025-01-16 11:10:23 UTC
I really wish we could edit comments, as I forgot to mention I also have disabled the "maximise windows dragged to top edge", but moving a window to the top edge still gives me snap-behaviour with a(n increased) chance of freezing.
Comment 13 fanzhuyifan 2025-01-16 17:03:55 UTC
Hi Alberto, I think I get what you are saying in the screencast -- there is no grey "preview" showing you where the window will maximize to.

Hi Bert, let's just use this to track the no "preview" issue, and track the freezing issue in BUG: 498544.

These two issues might be unrelated because I can easily reproduce the freezing issue, but not the no "preview" issue.
Comment 14 Bert 2025-01-17 09:21:02 UTC
(In reply to fanzhuyifan from comment #13)
> Hi Bert, let's just use this to track the no "preview" issue, and track the
> freezing issue in BUG: 498544.
> 
> These two issues might be unrelated because I can easily reproduce the
> freezing issue, but not the no "preview" issue.

Hi, no problem. As the two issues appeared simultaneously on my system I assumed they were related.
Just to confirm what Alberto said: When I change the theme colour (Settings > Colours & Themes > Colours) the preview works again. Next (re)boot it is gone again. It doesn't matter if I use a predefined colour or a custom one, nor does it matter which theme I use.
Comment 15 Bert 2025-01-17 11:57:30 UTC
I just noticed that the preview for the Meta-T areas (shift-move a window) also does not work.