Bug 456985 - touchscreen input events accepted when screen is disabled
Summary: touchscreen input events accepted when screen is disabled
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 5.25.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-21 15:32 UTC by Matej Starc
Modified: 2023-01-17 12:56 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Starc 2022-07-21 15:32:25 UTC
SUMMARY
I have a laptop with a touch screen, which I have disabled because I use an external monitor and I that even if the internal screen (laptops touchscreen) is disabled it still accepts touch events.

EXPECTED RESULT
I think if a monitor is disabled, it shouldn't accept touch events.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.12-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD RENOIR
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: Zenbook UN5401QAB_UN5401QA
System Version: 1.0
Comment 1 Nate Graham 2022-07-22 17:17:27 UTC
If it's disabled, then it's not showing any output. How can you tell it's accepting touch events?
Comment 2 Matej Starc 2022-07-22 20:30:43 UTC
(In reply to Nate Graham from comment #1)
> If it's disabled, then it's not showing any output. How can you tell it's
> accepting touch events?

I have an external screen.
Comment 3 Nate Graham 2022-07-25 13:51:08 UTC
I don't understand how that would be related. Can you clarify?
Comment 4 Matej Starc 2022-07-25 16:41:40 UTC
(In reply to Nate Graham from comment #3)
> I don't understand how that would be related. Can you clarify?

You can directly see it how it moves the cursor., when you press on the touchscreen it accepts the press event, etc.
Comment 5 Nate Graham 2022-07-25 17:02:31 UTC
I can't reproduce that using these steps:

1. Plug in external screen (HDMI) to touchscreen laptop
2. Hit Meta+P to show the screen OSD
3. Click "Switch to external screen
4. Tap the part of the laptop screen where Kickoff would be, trying to open it on the other screen

Result: nothing happens on the other screen; Kickoff does not open.

Does this sequence of actions do the wrong thing for you?
Comment 6 Matej Starc 2022-07-25 17:38:17 UTC
(In reply to Nate Graham from comment #5)
> I can't reproduce that using these steps:
> 
> 1. Plug in external screen (HDMI) to touchscreen laptop
> 2. Hit Meta+P to show the screen OSD
> 3. Click "Switch to external screen
> 4. Tap the part of the laptop screen where Kickoff would be, trying to open
> it on the other screen
> 
> Result: nothing happens on the other screen; Kickoff does not open.
> 
> Does this sequence of actions do the wrong thing for you?
I could control windows (dragging the titlebar), it would accept press events on programs, etc. 
Currently, I cannot reproduce because I don't have an external monitor at hand.
Comment 7 Bug Janitor Service 2022-08-09 04:35:35 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 8 Matej Starc 2022-08-09 09:22:28 UTC
(In reply to Nate Graham from comment #5)
> I can't reproduce that using these steps:
> 
> 1. Plug in external screen (HDMI) to touchscreen laptop
> 2. Hit Meta+P to show the screen OSD
> 3. Click "Switch to external screen
> 4. Tap the part of the laptop screen where Kickoff would be, trying to open
> it on the other screen
> 
> Result: nothing happens on the other screen; Kickoff does not open.
> 
> Does this sequence of actions do the wrong thing for you?

I just tested it. It indeed does the wrong thing (it opens the app launcher menu).
Comment 9 Vlad Zahorodnii 2023-01-17 12:56:48 UTC
Should be fixed in 5.27. Reopen it if you can still reproduce it.