Bug 424640 - Handles for resizing a window work unreliably with Opera and Xorg
Summary: Handles for resizing a window work unreliably with Opera and Xorg
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-25 10:30 UTC by Alexander Shchadilov
Modified: 2020-08-17 19:29 UTC (History)
2 users (show)

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


Attachments
Video demonstration (1.75 MB, video/x-matroska)
2020-07-25 13:50 UTC, Alexander Shchadilov
Details
Screenshot (100.72 KB, image/png)
2020-07-25 13:50 UTC, Alexander Shchadilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Shchadilov 2020-07-25 10:30:22 UTC
SUMMARY
It is hard to gradually resize a window of Opera browser using a mouse when running in Xorg session. First I thought that handles on right and bottom borders do not work at all, but actually they may work if you are lucky to find a special size/position of the window. A handle on the left border may appear on the screen while not functioning.
Changing GTK3 theme from Breeze to Adwaita has no effect, switching to Wayland helps.

STEPS TO REPRODUCE
1. Open Opera browser in Plasma Xorg session.
2. Click the "Restore" button to make Opera window take only a part of the screen.
3. Try to resize the window by dragging left, right or bottom border.

OBSERVED RESULT
The window is not resized.

EXPECTED RESULT
The window is resized.

REPRODUCIBILITY
Reproducible most of the times, but not with some size/position combinations.

WORKAROUND
This workaround helped me with a somewhat similar problem with Firefox in CSD mode back than Bug 412080 was not fixed, it also works for Opera now.
1. Launch an Opera application.
1. In Plasma, go to System Settings/Application Style/Window Decorations/Theme, click on an icon in the left lower corner of Breeze-styled window to get "Breeze - System Settings".
2. Window-Specific Overrides, Add, Detect Window Properties, click on the Opera window.
3. Press Ok.
4. Set Border Size to "No Border" and check "Hide window title bar", press Ok.
5. Press Ok to close "Breeze - System Settings".
6. In System Settings, go to Window Management/Window Rules, New, Detect Window Properties, click on the Opera window.
7. Press Ok.
8. In Appearance & Fixes, set "No titlebar and frame" to "Force", "No".
9. Press Ok.
10. Press Apply in Window Rules.

SOFTWARE/OS VERSIONS
openSUSE Leap 15.2
Opera 69.0.3686.49
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
Comment 1 David Edmundson 2020-07-25 12:03:16 UTC
Can I have a screenshot please
Comment 2 Alexander Shchadilov 2020-07-25 13:50:06 UTC
Created attachment 130392 [details]
Video demonstration
Comment 3 Alexander Shchadilov 2020-07-25 13:50:38 UTC
Created attachment 130393 [details]
Screenshot
Comment 4 Alexander Shchadilov 2020-07-25 13:57:28 UTC
I thought that screenshot would be of limited use in this situation, a screenshot and a video are attached.
Comment 5 Patrick Silva 2020-08-14 13:11:33 UTC
humm, I can resize Opera 70.0.3728.106 on neon unstable by dragging any of its borders, but it's hard to enter in resizing mode, mainly with crappy/imprecise touchpad like mine. 

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Comment 6 Alexander Shchadilov 2020-08-15 19:25:34 UTC
(In reply to Patrick Silva from comment #5)
> humm, I can resize Opera 70.0.3728.106 on neon unstable by dragging any of
> its borders, but it's hard to enter in resizing mode, mainly with
> crappy/imprecise touchpad like mine. 

Just to be sure - that was in Xorg, right?
Comment 7 Patrick Silva 2020-08-15 19:40:07 UTC
right
Comment 8 Vlad Zahorodnii 2020-08-17 19:29:58 UTC
The window simply has a too tiny window border. There is not that much that we (window manager developers) can do to fix this bug. I suggest to report this issue to Opera developers.

Fix: render Opera at a slightly bigger size and use a combo of _GTK_FRAME_EXTENTS + custom input shape.