Bug 413543 - A popup by shortcut of 'Show color selector' disappears when moving cursor, then the shortcut shows no popup.
Summary: A popup by shortcut of 'Show color selector' disappears when moving cursor, ...
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Color Selectors (show other bugs)
Version: 4.2.7-beta1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-28 10:34 UTC by Mochi TANAKA
Modified: 2020-04-25 09:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mochi TANAKA 2019-10-28 10:34:11 UTC
SUMMARY
A color selector popped up by the shortcut key of shift+I,'Show color selector' disappears when moving the cursor to outside of the color selector. Then pressing shift+I does not show a color selector.

Shift + M and shift + N are also the same result.

STEPS TO REPRODUCE
1. Make a new file with no settings, like 1600x1200px, 100ppi.
2. Press a shortcut key like Shift + I, 'Show color selector' with the cursor on the canvas. A color selector pops up under the cursor.
3. Move the cursor to outside of the color selector popped up. The color selector disappears.

4. Press again the shortcut key, Shift + I. A color selector does not pop up.
5. Opening a new window from menu, like Setting -> 'Configure Krita' makes krita enable the shortcut keys again.

OBSERVED RESULT
Step 4. of the STEPS TO REPRODUCE above.
Pressing again the shortcut key, Shift + I. A color selector does not pop up.

EXPECTED RESULT
Pressing again the shortcut key, Shift + I. A color selector pop up.
Shift + m and Shift +n are also.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: xubuntu 19.04
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Before 3, pressing any key makes selectors disappear and the shortcut keys remain enabled.
And Advanced color Selector menu -> Behavior tab -> toggling 'Hide Popup on click' on is similar.

kernel: Linux (x86_64) release 5.2.4-19.07.29.amdgpu.ubuntu
graphics: AMD 2200G graphics
driver: mesa-common-dev 19.3~git1910270730.a0c003~oibaf~d and etc in ppa:oibaf/graphics-drivers
mouse and intuos4

krita: krita-4.2.7-beta1-708c790-x86_64.appimage

no $HOME/kritarc and so on
no $HOME/.local/share/krita
Comment 1 Halla Rempt 2019-10-28 10:39:37 UTC
I cannot reproduce this; no matter what I do, wether I click on the popup or not before moving the mouse away, the next shortcut will show the popup again. I am using Plasma with the kwin window manager, and I'm wondering the issue might not be with whatever xfce uses for window manager,


Note: The kritarc file is in $HOME/.config/, not $HOME. It is impossible to run Krita without generating that file and without generating a krita resources folder. Unless you have set the XDG_DATA_HOME, XDG_CONFIG_HOME, XDG_DATA_DIRS and XDG_CONFIG_DIRS to  something different than the default, that's where those files will be.
Comment 2 Mochi TANAKA 2019-10-28 11:26:41 UTC
(In reply to Boudewijn Rempt from comment #1)
> I cannot reproduce this; no matter what I do, wether I click on the popup or
> not before moving the mouse away, the next shortcut will show the popup
> again. I am using Plasma with the kwin window manager, and I'm wondering the
> issue might not be with whatever xfce uses for window manager,

I see. Window manager possibly depends. I have no environment except this xfce. I will try any other window manager like kde/plasma if there is a chance.

> Note: The kritarc file is in $HOME/.config/, not $HOME. It is impossible to
> run Krita without generating that file and without generating a krita
> resources folder. Unless you have set the XDG_DATA_HOME, XDG_CONFIG_HOME,
> XDG_DATA_DIRS and XDG_CONFIG_DIRS to  something different than the default,
> that's where those files will be.

Sorry for my wrting mistake. I wrote $HOME instead of $HOME/.config/. I accually removed kritarc and kritadisplayrc in $HOME/.config/ and did this procedure. I thank for your kind explanation.

Thank you.
Comment 3 Mochi TANAKA 2019-10-29 14:12:15 UTC
I examined the prosedure with each iso below.

lubuntu 19.10 lxqt/openbox: not reproduce
xubuntu 19.10 xfce/xfwm   : reproduce
kubuntu 19.10 plasma/kwin : not reproduce
MX_linux 19   xfce/xfwm   : reproduce

and 

xubuntu 19.04 xfce/openbox : not reproduce
(replacing xfwm with openbox in xfce)

It seems that xfwm is related to the bug.

A issue of 'Krita loses keyboard focus on exiting color selector popup' in krita forum is probably the same as this report. The issue is in more detail.
Comment 4 wolthera 2020-04-25 09:48:57 UTC
I am afraid we can't do much about this. We've changed the focus handling in 4.3, but we can't change the way window managers work, so if that fix doesn't fix this, we can't actually fix this bug :(

Your best bet is to report to the xfwm, maybe they know what can be done.