Bug 477268 - Enabling tablet mode breaks external output
Summary: Enabling tablet mode breaks external output
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: master
Platform: openSUSE Other
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen, qt6, regression
Depends on:
Blocks:
 
Reported: 2023-11-20 07:54 UTC by Fushan Wen
Modified: 2024-05-04 02:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.5


Attachments
bug.png (1.21 MB, image/png)
2023-11-29 17:22 UTC, Fushan Wen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2023-11-20 07:54:57 UTC
STEPS TO REPRODUCE
1. Open general behavior KCM
2. Click "Always enabled Touch Mode"
3. Apply

OBSERVED RESULT
The output becomes too small.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: kwin at 357fba6a085d526a7969e59072d2ded321d6b370
KDE Frameworks Version: 
Qt Version: 6.6.0

ADDITIONAL INFORMATION
Only tested on X11 since I can't log in to Wayland.
Comment 1 Marco Martin 2023-11-23 15:33:36 UTC
what output? does it alter scaling?
Comment 2 Nate Graham 2023-11-26 19:27:54 UTC
I also see nothing out of the ordinary when using this setting. And, yeah, which output? Can you attach a screenshot?
Comment 3 Fushan Wen 2023-11-29 17:22:10 UTC
Created attachment 163618 [details]
bug.png

Please see the screenshot.
Comment 4 Fushan Wen 2023-11-29 17:24:51 UTC
Global scale factor: 200%
Only happens in the external monitor
Comment 5 Nate Graham 2023-11-30 20:36:45 UTC
And what does your system look like normally, on X11 with 200% global scale and not in tablet mode?
Comment 6 Fushan Wen 2024-02-20 11:51:09 UTC
There might be some regressions in processing the old kscreen config. After I nuked the old config, the bug is gone.
Comment 7 Bug Janitor Service 2024-04-29 15:10:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5673
Comment 8 Zamundaaa 2024-04-30 11:45:19 UTC
Git commit b976c274fd51be471464987f37696156a0cfc8e1 by Xaver Hugl.
Committed on 30/04/2024 at 11:38.
Pushed by zamundaaa into branch 'master'.

workspace: don't touch output configs on Xorg

It sets some output properties that don't match what Xorg knows about the outputs,
which may cause problems

M  +13   -11   src/workspace.cpp

https://invent.kde.org/plasma/kwin/-/commit/b976c274fd51be471464987f37696156a0cfc8e1
Comment 9 Bug Janitor Service 2024-04-30 11:45:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5678
Comment 10 Zamundaaa 2024-04-30 11:57:49 UTC
Git commit 84a27399b28e51963c1f63923211d5a39269b2c3 by Xaver Hugl.
Committed on 30/04/2024 at 11:45.
Pushed by zamundaaa into branch 'Plasma/6.0'.

workspace: don't touch output configs on Xorg

It sets some output properties that don't match what Xorg knows about the outputs,
which may cause problems


(cherry picked from commit b976c274fd51be471464987f37696156a0cfc8e1)

M  +13   -11   src/workspace.cpp

https://invent.kde.org/plasma/kwin/-/commit/84a27399b28e51963c1f63923211d5a39269b2c3