Diffusion Krita fa8f98c52868

Fix Color Selector popup and color preview auto-hiding

Authored by dkazakov on Oct 10 2018, 4:46 PM.

Description

Fix Color Selector popup and color preview auto-hiding

There were two problems:

  1. There is a bug either in Qt or in X11: if one moves

mouse cursor from a normal window to its tooltip, this
normal window never gets a QEvent::Leave event. Even if
the user switches the task using Alt+Tab. This is
worked-around by tracking Enter/Leave events in the tooltip
itself. Good that we have access to it :)

  1. When using Qt::X11BypassWindowManagerHint the popup window

gets no sane events from the window manager on X11, therefore
we cannot hide that popup. The problem is solved by making
the window just a normal window.

BACKPORT:krita/4.1

Details

Committed
dkazakovOct 10 2018, 4:48 PM
Parents
R37:4a0b03383d1f: Comment out this line temporarily.
Branches
Unknown
Tags
Unknown