Bug 358374

Summary: Mouse pointer randomly disappears everywhere
Product: [Plasma] kwin Reporter: Robin Green <greenrd>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: major    
Priority: NOR    
Version First Reported In: 5.5.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Robin Green 2016-01-22 13:12:28 UTC
I don't know what causes this. The invisible mouse pointer can still be moved and clicked because I can see its effects, but other than that I can't see where it is. It comes back by itself after a while.
Comment 1 Thomas Lübking 2016-01-22 13:49:35 UTC
Zoom effect related?

Otherwise there's no chance than kwin hides the cursor - any client however may at any time, eg. konsole and videoplayers typically do after a short while.

> It comes back by itself after a while.
This does not sound like a bug (in kwin) to me then - we'd either break on the counter (in the zoom effect) or not.
Comment 2 Robin Green 2016-01-23 07:56:30 UTC
(In reply to Thomas Lübking from comment #1)
> Zoom effect related?

I haven't enabled any such effects, nor do I see any "zoom effect".

> Otherwise there's no chance than kwin hides the cursor - any client however
> may at any time, eg. konsole and videoplayers typically do after a short
> while.

But I thought that if a window does something to the mouse pointer, other windows should still have a normal mouse pointer when I hover over them. That's not what I see here. This is not full screen and I have 2 displays with different windows on each, and it happens on both displays, including on the plasmashell panel.
Comment 3 Martin Flöser 2016-01-23 08:37:10 UTC
> other windows should still have a normal mouse pointer when I hover over them.

yes, that should work. If it doesn't it just indicates more that this is a problem outside of KWin. E.g. X or more likely drivers.
Comment 4 Thomas Lübking 2016-01-23 10:17:58 UTC
> But I thought that if a window does something to the mouse pointer, other windows should still have a normal mouse pointer when I hover over them.

No, there're several (ok, "two" common) ways to hide the cursor completely. Any client can do this.
Prove: unclutter.

The zoom effect (kcmshell5 kwineffects) uses one to hide the cursor and show a (scaled) texture instead on zooming the screen - but if that's not the cause, it's *very* most unlikely kwin.

=> Try to figure a pattern (running, active, changing windows) when this happens (forth and back)

As Martin pointed out, this also can be a bug in the X11 driver (the cursor is special and painted by the driver into the scanout buffer after the actual rendering)

You may attach /var/log/Xorg.0.log for inspection.
Comment 5 Martin Flöser 2016-08-29 08:12:57 UTC
KWin is not responsible for rendering the cursor on X11.