<?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>466969</bug_id>
          
          <creation_ts>2023-03-06 20:16:03 +0000</creation_ts>
          <short_desc>Tapping Virtual Keyboard button doesn&apos;t make the virtual keyboard appear on SDDM (Wayland)</short_desc>
          <delta_ts>2024-04-05 11:25:53 +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>virtual-keyboard</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>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=467209</see_also>
          <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>aleixpol</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-desktop/-/commit/4580d0437735f895993e3b7ccbec2b942b195e99</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>2214443</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Deop">kde</who>
    <bug_when>2023-03-06 20:16:03 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Start computer to SDDM
2. Press the &quot;Virtual Keyboard&quot; button on the lower left corner

OBSERVED RESULT
Nothing seems to happen

EXPECTED RESULT
The virtual keyboard shows up (same as if I touched an input field with the touchscreen)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214757</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Deop">kde</who>
    <bug_when>2023-03-07 22:11:15 +0000</bug_when>
    <thetext>I forgot to mention this only happens on Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214812</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-03-08 04:26:09 +0000</bug_when>
    <thetext>Can reproduce with SDDM in native Wayland mode, not in X11 mode (where it still shows the QtVirtualKeyboard) in both test more and also real use.

Looks like the SDDM theme part is doing its part, but when we get to the bit where we call `Keyboards.KWinVirtualKeyboard.enabled = true`, Maliit doesn&apos;t appear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214866</commentid>
    <comment_count>3</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-08 12:30:22 +0000</bug_when>
    <thetext>Is it when you use the mouse that it doesn&apos;t appear? My guess is that it&apos;s the &quot;was it triggered by a touch event?&quot; feature  that is getting in the way.

I&apos;d been trying to debug this yesterday, but I&apos;m getting hit by an unrelated issue that wouldn&apos;t let me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214867</commentid>
    <comment_count>4</comment_count>
    <who name="Marc Deop">kde</who>
    <bug_when>2023-03-08 12:33:43 +0000</bug_when>
    <thetext>(In reply to Aleix Pol from comment #3)
&gt; Is it when you use the mouse that it doesn&apos;t appear? My guess is that it&apos;s
&gt; the &quot;was it triggered by a touch event?&quot; feature  that is getting in the way.
&gt; 
&gt; I&apos;d been trying to debug this yesterday, but I&apos;m getting hit by an unrelated
&gt; issue that wouldn&apos;t let me.

No. The virtual keyboard never shows when I press/click/touch the button via mouse, touchpad or touchscreen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2214883</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-03-08 14:46:18 +0000</bug_when>
    <thetext>Same. As a data point, when I press the button with my finger in SDDM&apos;s test mode, the full-screen SDDM greeter window resizes to be only half-screen, making room for where the Maliit keyboard *would* be. But it never appears to fill that space.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215064</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-03-09 03:50:58 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3783</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215065</commentid>
    <comment_count>7</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-09 03:51:36 +0000</bug_when>
    <thetext>This one is necessary if you dismiss the keyboard by swiping...
https://github.com/maliit/keyboard/pull/187</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215164</commentid>
    <comment_count>8</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-09 14:30:10 +0000</bug_when>
    <thetext>Git commit d34cf36bfaadd39fcc6893379a0d8d8326031eea by Aleix Pol Gonzalez, on behalf of Aleix Pol.
Committed on 09/03/2023 at 14:18.
Pushed by apol into branch &apos;master&apos;.

inputmethod: Show the input method even if it was dismissed

Reset the current context in case we receive a show() event from the
client, meaning that they really want to see that virtual keyboard.

M  +2    -0    src/inputmethod.cpp

https://invent.kde.org/plasma/kwin/commit/d34cf36bfaadd39fcc6893379a0d8d8326031eea</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215170</commentid>
    <comment_count>9</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-09 15:26:36 +0000</bug_when>
    <thetext>Git commit 8fefef61849c58ca74e50cf09a6fcc15639cf087 by Aleix Pol Gonzalez, on behalf of Aleix Pol.
Committed on 09/03/2023 at 14:36.
Pushed by apol into branch &apos;Plasma/5.27&apos;.

inputmethod: Show the input method even if it was dismissed

Reset the current context in case we receive a show() event from the
client, meaning that they really want to see that virtual keyboard.


(cherry picked from commit d34cf36bfaadd39fcc6893379a0d8d8326031eea)

M  +2    -0    src/inputmethod.cpp

https://invent.kde.org/plasma/kwin/commit/8fefef61849c58ca74e50cf09a6fcc15639cf087</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215319</commentid>
    <comment_count>10</comment_count>
    <who name="Marc Deop">kde</who>
    <bug_when>2023-03-10 10:14:14 +0000</bug_when>
    <thetext>Unfortunately the patches do not seem to work for me :(

I have Frameworks 5.104.0 (with the latest re-spin), kwin 5.27.2 with added patches (https://download.copr.fedorainfracloud.org/results/@kdesig/kde/fedora-37-x86_64/05619797-kwin/) the specific lines (from the spec file):
## upstream patches
Patch1: make-sure-input-backends-are-initialised-when-the-workspace-is-set-up.patch
Patch2: show-the-input-method-even-if-it-was-dismissed.patch

I also have patched maliit-keyboard: https://koji.fedoraproject.org/koji/taskinfo?taskID=98502688

Do we perhaps need the other commits I can see on kwin&apos;s side of things? or perhaps other commits on maliit-keyboard?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215381</commentid>
    <comment_count>11</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-10 16:45:19 +0000</bug_when>
    <thetext>Git commit cab6b844422aab0072db840123cc3207b338564b by Aleix Pol Gonzalez, on behalf of Aleix Pol i Gonzalez.
Committed on 10/03/2023 at 16:19.
Pushed by apol into branch &apos;Plasma/5.27&apos;.

sddm-theme: Transfer the focus to the text field as we show the OSK

Borrowed from the lockscreen, we need to make sure the correct component
is focussed, otherwise the Virtual Keyboard cannot find its purpose.

M  +6    -1    lookandfeel/sddm-theme/Main.qml

https://invent.kde.org/plasma/plasma-workspace/commit/cab6b844422aab0072db840123cc3207b338564b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2215382</commentid>
    <comment_count>12</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-10 16:52:23 +0000</bug_when>
    <thetext>Git commit e7c7a0688418f8111760b9fdfe09c3ddb1c1c88f by Aleix Pol, on behalf of Aleix Pol i Gonzalez.
Committed on 10/03/2023 at 16:52.
Pushed by apol into branch &apos;master&apos;.

sddm-theme: Transfer the focus to the text field as we show the OSK

Borrowed from the lockscreen, we need to make sure the correct component
is focussed, otherwise the Virtual Keyboard cannot find its purpose.

M  +6    -1    lookandfeel/sddm-theme/Main.qml

https://invent.kde.org/plasma/plasma-workspace/commit/e7c7a0688418f8111760b9fdfe09c3ddb1c1c88f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2308563</commentid>
    <comment_count>13</comment_count>
    <who name="Marco Martin">notmart</who>
    <bug_when>2024-04-05 11:25:53 +0000</bug_when>
    <thetext>Git commit 4580d0437735f895993e3b7ccbec2b942b195e99 by Marco Martin, on behalf of Aleix Pol i Gonzalez.
Committed on 05/04/2024 at 11:25.
Pushed by mart into branch &apos;master&apos;.

sddm-theme: Transfer the focus to the text field as we show the OSK

Borrowed from the lockscreen, we need to make sure the correct component
is focussed, otherwise the Virtual Keyboard cannot find its purpose.

M  +6    -1    Main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/4580d0437735f895993e3b7ccbec2b942b195e99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>