<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>466721</bug_id>
          
          <creation_ts>2023-03-02 14:24:14 +0000</creation_ts>
          <short_desc>Touchscreen does not work when using kwin_wayland as compositorcommand on SDDM</short_desc>
          <delta_ts>2023-03-11 04:36:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>libinput</component>
          <version>5.27.2</version>
          <rep_platform>Fedora RPMs</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marc Deop">kde</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>nate</cc>
    
    <cc>ngompa</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/commit/d32dc2ea2456f4d97cbd38381b4272876a7e4657</cf_commitlink>
          <cf_versionfixedin>5.27.3</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2213304</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Deop">kde</who>
    <bug_when>2023-03-02 14:24:14 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Boot the computer into SDDM on Wayland
2. Try the touchscreen... nothing happens

OBSERVED RESULT
Touching the screen doesn&apos;t seem to have any effect

EXPECTED RESULT
The touchscreen works

SOFTWARE/OS VERSIONS

Linux: 6.1.12-200.fc37.x86_64
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION:

After enabling WAYLAND_DEBUG=1 I could see this on the logs:

Mar 01 22:46:40 marc-xps15 sddm-helper-start-wayland[13601]: &quot;kwin_libinput: Touch down received for device with no output assigned


The CompositorCommand on SDDM is set to:
kwin_wayland --no-global-shortcuts --no-lockscreen --inputmethod maliit-keyboard --locale1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213619</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Deop">kde</who>
    <bug_when>2023-03-03 15:54:49 +0000</bug_when>
    <thetext>Something I found out and it might be relevant:

After switching to a different TTY and getting back to SDDM... now the touch events work. Curious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214535</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-03-07 02:46:50 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3762</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214616</commentid>
    <comment_count>3</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-07 12:10:41 +0000</bug_when>
    <thetext>Git commit 4bc8cd6c5427665af89f232dce43f0375db3bb0b by Aleix Pol i Gonzalez, on behalf of Aleix Pol.
Committed on 07/03/2023 at 11:53.
Pushed by vladz into branch &apos;master&apos;.

input: Make sure input backends are initialised when the workspace is set up

The outputs already present upon workspace setup wouldn&apos;t signal. This
was easily triggered running a standalone kwin session on a tty, it
would manifest with the touchscreen not working complaining that it
didn&apos;t have an output assigned yet.

M  +1    -0    src/input.cpp

https://invent.kde.org/plasma/kwin/commit/4bc8cd6c5427665af89f232dce43f0375db3bb0b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214618</commentid>
    <comment_count>4</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2023-03-07 12:29:14 +0000</bug_when>
    <thetext>Git commit d32dc2ea2456f4d97cbd38381b4272876a7e4657 by Vlad Zahorodnii, on behalf of Aleix Pol.
Committed on 07/03/2023 at 12:14.
Pushed by apol into branch &apos;Plasma/5.27&apos;.

input: Make sure input backends are initialised when the workspace is set up

The outputs already present upon workspace setup wouldn&apos;t signal. This
was easily triggered running a standalone kwin session on a tty, it
would manifest with the touchscreen not working complaining that it
didn&apos;t have an output assigned yet.


(cherry picked from commit 4bc8cd6c5427665af89f232dce43f0375db3bb0b)

M  +1    -0    src/input.cpp

https://invent.kde.org/plasma/kwin/commit/d32dc2ea2456f4d97cbd38381b4272876a7e4657</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214620</commentid>
    <comment_count>5</comment_count>
    <who name="">farline99</who>
    <bug_when>2023-03-07 12:31:31 +0000</bug_when>
    <thetext>Wow, only a couple of days ago I encountered this bug, and then the bug report is ready, and the commit was made 10 hours ago. Fantastic!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214635</commentid>
    <comment_count>6</comment_count>
    <who name="Marc Deop">kde</who>
    <bug_when>2023-03-07 14:01:00 +0000</bug_when>
    <thetext>I confirm it&apos;s fixed for me.

Fix available on our copr repository: https://copr.fedorainfracloud.org/coprs/g/kdesig/kde/

I will bring it to the normal repositories with Plasma 5.27.3 next week</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>