[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [kwin] [Bug 393639] Mouse cursor flicker when passing window borders
From:       Martin Flöser <bugzilla_noreply () kde ! org>
Date:       2018-05-19 7:00:23
Message-ID: bug-393639-17878-fZfKRqQ5xm () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=393639

--- Comment #30 from Martin Flöser <mgraesslin@kde.org> ---
Git commit e3250460cc62800d706d02eda78e866efb12da55 by Martin Flöser.
Committed on 19/05/2018 at 06:58.
Pushed by graesslin into branch 'Plasma/5.12'.

Do not unset cursor image when cursor enters a surface

Summary:
>From Wayland documentation:
"When a seat's focus enters a surface, the pointer image is undefined and
a client should respond to this event by setting an appropriate pointer
image with the set_cursor request."

KWin's interpretation so far for the undefined pointer image was to
remove the pointer image when entering a surface waiting for the client
to set a cursor image. This can result in a short flicker as there might
be a frame without a cursor image.

This patch changes the behavior by keeping the previous image till the
application set a new one. This brings some advantages:
 * if the application is not responding a cursor is still shown
 * if the same cursor is used as in the previous window we don't have a
flicker

Test Plan: I cannot see the flicker, so only tested with the adjusted tests

Reviewers: #kwin, #plasma

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D12631

M  +7    -5    autotests/integration/pointer_input.cpp
M  +6    -7    autotests/integration/scene_qpainter_test.cpp
M  +9    -2    pointer_input.cpp

https://commits.kde.org/kwin/e3250460cc62800d706d02eda78e866efb12da55

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic