<?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>449907</bug_id>
          
          <creation_ts>2022-02-10 02:37:40 +0000</creation_ts>
          <short_desc>Adding/removing a virtual desktop requires two clicks on the relevant button</short_desc>
          <delta_ts>2022-06-24 18:26:40 +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>effects-overview</component>
          <version>5.24.0</version>
          <rep_platform>Arch Linux</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=454275</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tgnff242</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>n8thefusion</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/commit/e6ae8fb6755398d3512863c7de6493360962118e</cf_commitlink>
          <cf_versionfixedin>5.25.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2102667</commentid>
    <comment_count>0</comment_count>
    <who name="">tgnff242</who>
    <bug_when>2022-02-10 02:37:40 +0000</bug_when>
    <thetext>SUMMARY
This affects the desktop grid effect, as well. Essentially, a double click is required to add, or remove, one virtual desktop.


STEPS TO REPRODUCE
1. Enter the overview/desktop-grid effect.
2. Click on the button to add more virtual desktops four times.

OBSERVED RESULT
Two virtual desktops have been added.

EXPECTED RESULT
Four desktops should have been added.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2 + KDE patches</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2103478</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-11 17:56:39 +0000</bug_when>
    <thetext>Cannot reproduce on Wayland. Are you on X11?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2103537</commentid>
    <comment_count>2</comment_count>
    <who name="">tgnff242</who>
    <bug_when>2022-02-11 19:06:18 +0000</bug_when>
    <thetext>Yes, I am on X11.

Even on Wayland, though, not every click is registered if you click on it fast enough . You can&apos;t do that using the Overview effect because the button changes location, but you can using the Desktop Grid effect. See also Bug 441951.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104540</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-14 16:43:20 +0000</bug_when>
    <thetext>The button is big enough that you can position your cursor on the far right so that the next click will hit the button again even after it moves. Cannot reproduce on Wayland.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2132049</commentid>
    <comment_count>4</comment_count>
    <who name="Nathan">n8thefusion</who>
    <bug_when>2022-06-16 21:25:45 +0000</bug_when>
    <thetext>I am also experiencing this bug. The first click on any button (close window button, add desktop button, remove desktop button) after enabling overview mode works as expected. Any subsequent clicks requires two clicks for the button to work.
I hope this helps.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.18.3-arch1-1 (64-bit)
Graphics Platform: X11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134408</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-06-24 15:04:42 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/2576</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134449</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-06-24 17:55:01 +0000</bug_when>
    <thetext>Git commit 66a54d38d4dfe231980dfa1e4393d62f3c559df1 by Nate Graham, on behalf of Marco Martin.
Committed on 24/06/2022 at 17:54.
Pushed by ngraham into branch &apos;master&apos;.

effects: Set timestamp for input events

Set the time for mouse and touch events. This is especially important
for the mouse is as the timestamp will be used to discriminate between
single and double click. Previously this was always sending the double
click event, making buttons work only every other click.
Related: bug 454275

M  +3    -0    src/backends/x11/standalone/effects_mouse_interception_x11_filter.cpp
M  +1    -2    src/libkwineffects/kwinoffscreenquickview.cpp

https://invent.kde.org/plasma/kwin/commit/66a54d38d4dfe231980dfa1e4393d62f3c559df1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2134451</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-06-24 17:55:29 +0000</bug_when>
    <thetext>Git commit e6ae8fb6755398d3512863c7de6493360962118e by Nate Graham, on behalf of Marco Martin.
Committed on 24/06/2022 at 17:55.
Pushed by ngraham into branch &apos;Plasma/5.25&apos;.

effects: Set timestamp for input events

Set the time for mouse and touch events. This is especially important
for the mouse is as the timestamp will be used to discriminate between
single and double click. Previously this was always sending the double
click event, making buttons work only every other click.
Related: bug 454275


(cherry picked from commit 66a54d38d4dfe231980dfa1e4393d62f3c559df1)

M  +3    -0    src/backends/x11/standalone/effects_mouse_interception_x11_filter.cpp
M  +1    -2    src/libkwineffects/kwinoffscreenquickview.cpp

https://invent.kde.org/plasma/kwin/commit/e6ae8fb6755398d3512863c7de6493360962118e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>