<?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>448537</bug_id>
          
          <creation_ts>2022-01-15 17:13:44 +0000</creation_ts>
          <short_desc>Mouse pointer disappears on desktop Zoom in the X11 session</short_desc>
          <delta_ts>2022-10-13 13:35:57 +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-various</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=450438</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>HI</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Omar Helali">omar.helali</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          <cc>behzad.a_ir</cc>
    
    <cc>dolgener</cc>
    
    <cc>folderkillered</cc>
    
    <cc>jkreiner</cc>
    
    <cc>kde</cc>
    
    <cc>me</cc>
    
    <cc>me</cc>
    
    <cc>nate</cc>
    
    <cc>sebastiankuzlak</cc>
    
    <cc>w2.alharbi.me</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kwin/commit/43caf2539357a1f9d5b2668a8eff151517377a7e</cf_commitlink>
          <cf_versionfixedin>5.26</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="Wayland"
          id="4579"
          type_id="31"
          status="-"
          setter="vlad.zahorodnii"
    />
    <flag name="X11"
          id="4580"
          type_id="32"
          status="+"
          setter="vlad.zahorodnii"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2094074</commentid>
    <comment_count>0</comment_count>
    <who name="Omar Helali">omar.helali</who>
    <bug_when>2022-01-15 17:13:44 +0000</bug_when>
    <thetext>Just installed Plasma 5.23.90 to try it but since the first run, the mouse pointer disappears once you Zoom in then Out, and you just need (if lucky) track the hover effects on buttons or links to locate or right click it untill you logout et login again. The clicks and behaviour works as expected even if the cursor is invisible. Alse tried to change cursor theme and provoked Desktop Effects reset, but nothing brings my pointer back except logout. My setup is running X11 on Nvidia. Everything is latest to testing versions and unstable kde repo.
This is the first bug I try to report so please, if something is missing, don&apos;t be rude :)

STEPS TO REPRODUCE
1. Activate Desktop Effects Zoom IN
2. Zoom Out
3. Mouse pointer disappears
4. Zoom In again and it will reappear</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095063</commentid>
    <comment_count>1</comment_count>
    <who name="Sebastian Kuźlak">sebastiankuzlak</who>
    <bug_when>2022-01-18 15:01:28 +0000</bug_when>
    <thetext>confirm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096072</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-01-20 21:43:17 +0000</bug_when>
    <thetext>Cannot confirm in the Wayland session; works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096077</commentid>
    <comment_count>3</comment_count>
      <attachid>145680</attachid>
    <who name="Omar Helali">omar.helali</who>
    <bug_when>2022-01-20 21:45:56 +0000</bug_when>
    <thetext>Created attachment 145680
attachment-3153-0.html

Bug only on x11, works normal on Wayland

On Thu, 20 Jan 2022, 22:43 Nate Graham, &lt;bugzilla_noreply@kde.org&gt; wrote:

&gt; https://bugs.kde.org/show_bug.cgi?id=448537
&gt;
&gt; Nate Graham &lt;nate@kde.org&gt; changed:
&gt;
&gt;            What    |Removed                     |Added
&gt;
&gt; ----------------------------------------------------------------------------
&gt;                  CC|                            |nate@kde.org
&gt;           Component|general                     |effects-various
&gt;             Summary|Mouse pointer disappears on |Mouse pointer disappears
&gt; on
&gt;                    |desktop Zoom                |desktop Zoom in the X11
&gt;                    |                            |session
&gt;
&gt; --- Comment #2 from Nate Graham &lt;nate@kde.org&gt; ---
&gt; Cannot confirm in the Wayland session; works for me.
&gt;
&gt; --
&gt; You are receiving this mail because:
&gt; You reported the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096078</commentid>
    <comment_count>4</comment_count>
    <who name="Omar Helali">omar.helali</who>
    <bug_when>2022-01-20 21:47:45 +0000</bug_when>
    <thetext>It bugs only on X11, works normally in Wayland</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096082</commentid>
    <comment_count>5</comment_count>
    <who name="Sebastian Kuźlak">sebastiankuzlak</who>
    <bug_when>2022-01-20 21:53:11 +0000</bug_when>
    <thetext>Didn&apos;t test it on wayland since if i remember correctly 5.25 removed eglstreams so on my gtx660 i wont be able to run wayland. X11. I can reproduce it 95% of the time. Need to restart with kwin_x11 --replace to get rid of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096091</commentid>
    <comment_count>6</comment_count>
    <who name="Omar Helali">omar.helali</who>
    <bug_when>2022-01-20 21:57:52 +0000</bug_when>
    <thetext>I confirm that this bug does not exist on the Wayland session running on Arch / Nvidia (GF750Ti no egl) - Wayland running great by the way. Just switching to X11 makes the bug reappear</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096112</commentid>
    <comment_count>7</comment_count>
    <who name="Sebastian Kuźlak">sebastiankuzlak</who>
    <bug_when>2022-01-20 22:34:48 +0000</bug_when>
    <thetext>Well, i tried now running wayland but kwin_wayland crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096124</commentid>
    <comment_count>8</comment_count>
    <who name="Omar Helali">omar.helali</who>
    <bug_when>2022-01-20 22:46:35 +0000</bug_when>
    <thetext>(In reply to Sebastian Kuźlak from comment #7)
&gt; Well, i tried now running wayland but kwin_wayland crashes.

just in case .. nvidia-drm ... modeset ... :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096131</commentid>
    <comment_count>9</comment_count>
    <who name="Sebastian Kuźlak">sebastiankuzlak</who>
    <bug_when>2022-01-20 22:52:42 +0000</bug_when>
    <thetext>I set correctly way back.  Didn&apos;t change a thing since then. It used to work. Now it doesn&apos;t.

❯ sudo lsmod | grep nvidia
nvidia_uvm           2551808  0
nvidia_drm             73728  6
nvidia_modeset       1204224  12 nvidia_drm
nvidia              35401728  595 nvidia_uvm,nvidia_modeset</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100105</commentid>
    <comment_count>10</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2022-02-01 17:18:01 +0000</bug_when>
    <thetext>I can confirm and replicate this issue as well. Also, the &quot;workaround&quot;, although the mouse only comes to me while I keep some level of zooming. I also notice one weird thing. If you are sharing your screen (tried with Zoom and Teams), the mouse can still be seen by people even though it disappears from the screen locally.

Operating System: Arch Linux
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.4-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4790K CPU @ 4.00GHz
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100106</commentid>
    <comment_count>11</comment_count>
    <who name="Iyán M. V.">me</who>
    <bug_when>2022-02-01 17:19:18 +0000</bug_when>
    <thetext>Sorry, forgot to mention that I can confirm both with nvidia-470 and nvidia-495.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102074</commentid>
    <comment_count>12</comment_count>
    <who name="Omar Helali">omar.helali</who>
    <bug_when>2022-02-08 17:29:46 +0000</bug_when>
    <thetext>bug can still be reproduced in the new plasma 5.24 on X11, on Wayland works ok</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102312</commentid>
    <comment_count>13</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-09 10:54:56 +0000</bug_when>
    <thetext>*** Bug 449837 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102532</commentid>
    <comment_count>14</comment_count>
    <who name="Behzad A">behzad.a_ir</who>
    <bug_when>2022-02-09 19:23:31 +0000</bug_when>
    <thetext>*** Bug 449880 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102535</commentid>
    <comment_count>15</comment_count>
    <who name="Behzad A">behzad.a_ir</who>
    <bug_when>2022-02-09 19:26:04 +0000</bug_when>
    <thetext>*** Bug 449880 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102547</commentid>
    <comment_count>16</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2022-02-09 19:54:06 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1987</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102720</commentid>
    <comment_count>17</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-10 07:21:56 +0000</bug_when>
    <thetext>Git commit 0ad239a92de6ae859e892db6debafac2e3daefb5 by Vlad Zahorodnii.
Committed on 10/02/2022 at 07:07.
Pushed by vladz into branch &apos;master&apos;.

Fix mouse pointer disappearing after using zoom effect on X11

Currently, the Cursors::currentCursorChanged signal is wired to the
updateCursor() function which calls xcb_xfixes_hide_cursor() or
xcb_xfixes_show_cursor() depending if the cursor is hidden. However, the
currentCursorChanged signal can be emitted if the cursor changed, e.g. a
new pixmap attached, or its visibility status changes.

The zoom effect hides the pointer, but when user hovers ui elements, it
will most likely change and result in more than one xcb_xfixes_hide_cursor()
calls.

It appears like xcb_xfixes_hide_cursor() is implemented as a reference
counter, i.e. if xcb_xfixes_hide_cursor() is called two times, then you
must call xcb_xfixes_show_cursor() two times as well.

This change adds a dedicated signal to indicate whether the cursor is
hidden to avoid calling xcb_xfixes_hide_cursor() multiple times while
the screen is scaled.

M  +1    -0    src/backends/drm/drm_output.cpp
M  +1    -2    src/backends/x11/standalone/x11_platform.cpp
M  +2    -2    src/cursor.cpp
M  +1    -0    src/cursor.h

https://invent.kde.org/plasma/kwin/commit/0ad239a92de6ae859e892db6debafac2e3daefb5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2102721</commentid>
    <comment_count>18</comment_count>
    <who name="Vlad Zahorodnii">vlad.zahorodnii</who>
    <bug_when>2022-02-10 07:22:59 +0000</bug_when>
    <thetext>Git commit 43caf2539357a1f9d5b2668a8eff151517377a7e by Vlad Zahorodnii.
Committed on 10/02/2022 at 07:22.
Pushed by vladz into branch &apos;Plasma/5.24&apos;.

Fix mouse pointer disappearing after using zoom effect on X11

Currently, the Cursors::currentCursorChanged signal is wired to the
updateCursor() function which calls xcb_xfixes_hide_cursor() or
xcb_xfixes_show_cursor() depending if the cursor is hidden. However, the
currentCursorChanged signal can be emitted if the cursor changed, e.g. a
new pixmap attached, or its visibility status changes.

The zoom effect hides the pointer, but when user hovers ui elements, it
will most likely change and result in more than one xcb_xfixes_hide_cursor()
calls.

It appears like xcb_xfixes_hide_cursor() is implemented as a reference
counter, i.e. if xcb_xfixes_hide_cursor() is called two times, then you
must call xcb_xfixes_show_cursor() two times as well.

This change adds a dedicated signal to indicate whether the cursor is
hidden to avoid calling xcb_xfixes_hide_cursor() multiple times while
the screen is scaled.


(cherry picked from commit 0ad239a92de6ae859e892db6debafac2e3daefb5)

M  +1    -0    src/backends/drm/drm_output.cpp
M  +1    -2    src/backends/x11/standalone/x11_platform.cpp
M  +2    -2    src/cursor.cpp
M  +1    -0    src/cursor.h

https://invent.kde.org/plasma/kwin/commit/43caf2539357a1f9d5b2668a8eff151517377a7e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2103785</commentid>
    <comment_count>19</comment_count>
    <who name="ratijas">me</who>
    <bug_when>2022-02-12 08:13:42 +0000</bug_when>
    <thetext>*** Bug 448036 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104199</commentid>
    <comment_count>20</comment_count>
    <who name="Abdullah Alharbi">w2.alharbi.me</who>
    <bug_when>2022-02-13 20:41:27 +0000</bug_when>
    <thetext>Hello, guys i&apos;m sorry but does this fix released or yet ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106233</commentid>
    <comment_count>21</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-18 19:21:02 +0000</bug_when>
    <thetext>*** Bug 450438 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106234</commentid>
    <comment_count>22</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-18 19:21:39 +0000</bug_when>
    <thetext>Got another report from a user with 5.24.1 (Bug 450438), so it seems like this may not be fully fixed yet. Re-opening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160672</commentid>
    <comment_count>23</comment_count>
    <who name="Omar Helali">omar.helali</who>
    <bug_when>2022-10-13 08:29:35 +0000</bug_when>
    <thetext>This problem did has not occured a xhile ago, think it should be closed</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>145680</attachid>
            <date>2022-01-20 21:45:56 +0000</date>
            <delta_ts>2022-01-20 21:45:56 +0000</delta_ts>
            <desc>attachment-3153-0.html</desc>
            <filename>attachment-3153-0.html</filename>
            <type>text/html</type>
            <size>1605</size>
            <attacher name="Omar Helali">omar.helali</attacher>
            
              <data encoding="base64">PGRpdiBkaXI9ImF1dG8iPkJ1ZyBvbmx5IG9uIHgxMSwgd29ya3Mgbm9ybWFsIG9uIFdheWxhbmQ8
L2Rpdj48YnI+PGRpdiBjbGFzcz0iZ21haWxf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