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

            Bug ID: 386178
           Summary: Invoking Color Selector, Show Common Colors or Show
                    Color History deactivates keyboard and shortcuts in
                    krita
           Product: krita
           Version: 3.3.1
          Platform: Appimage
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: usability
          Assignee: krita-bugs-n...@kde.org
          Reporter: kxk-ocumoatbugs...@lugosys.com
  Target Milestone: ---

Invoking the Color Selector, Show Common Colors, or Show Color History widgets
disables (temporarily) the keybord and all Krita shortcuts, until moving the
focus from Krita main window to any other place and returning back.

It seems to be related to this particular type of Qt widget, which is different
than the normal modal dialogs. It would seem as if the widget is not
destroyed/exited properly or somehow doesn't return the focus properly until we
perform one of the actions listed below, after which the shorcuts and keyboard
work again.

IMPORTANT: This problem happens in the Xfce window manager, and it does NOT
happen in KDE (or at least I can't reproduce it there).

The problem would appear to me to be related to the infamous "Qt in GTK" or
"GTK in Qt" troubles; I wonder if it would also happen in other GTK
environments.
Please note that this bug is somewhat similar to Bug 366353, but I am opening
it new here, because that one is not very well documented, no answer was ever
provided to developer's question, it's old and seems dead.

Krita 3.3.1 (appimage) in Kubuntu 16.04 running Xfce (system details below).

Reproducible: Always

Steps to reproduce:

0. Use Xfce window manager. (In my KDE system this problem does NOT exist.)
1. Open a krita file and paint some stroke.
2. Invoke the the Color Selector widget (e.g. Shift + I in my case). When it
shows up, select a color.
    Note: The same problem will happen if you invoke the Show Common Colors or
the Show Color History widgets.
3. Paint some stroke. From this moment on, shortcuts stop working, i.e. krita
does not respond to any keyboard shortcut at all, e.g. Shift + I, ctrl + Z, U,
etc.
4. Try any krita shortcuts, for example undo with ctrl + Z or any others. Krita
does not react to any keyboard shortcuts.
5. To get the shortcuts working again, changing the focus from the main Krita
window and then focus back again to Krita will "fix it". For example, doing any
of the following actions works:
    a) Press <Alt>+<Tab> and release it.  After this, the shortcuts work again.
OR:
    b) Click on any other window that is open on your Desktop, to change the
focus to that window, and immediately click back on Krita's window to get the
focus on Krita again. OR:
    c) Minimize the Krita main window, and then restore it back. OR:
    d) Open any krita dialog by clicking menus, and then close that dialog.
Examples:
        Click Settings > Configure Krita and just press Cancel to close the
dialog. OR:
        Click File > New, then click Cancel or hit the Esc key to close the
dialog. OR:
        ....Probably opening and closing any dialog would do.

The shortcuts work again, but opening any of the mentioned widgets again, the
problem reproduces again: it works, but then shortcuts stop working until you
change focus of the window or open and cancel any dialog.

Expected Results:

Invoking and using any widget or tool should not cause any blockage of
shortcuts or any other usability impairments.

Additional notes:

Although I'm not 100% sure these are related, I thought I should mention:

The following error is shown on console output around the time we select Shift
+ I (Color Selector shortcut) for the first time, (but not necessarily
anymore):

QLayout: Attempting to add QLayout "" to QWidget "KritaShape/KisToolLine",
which already has a layout

In my .shotcuts file, 'KritaShape/KisToolLine' is set to 'none'.

The following warning (and/or other similar ones) is also show during this
time:

krita.general: WARNING: The following shortcuts are not registered in the
collection, they might have wrong shortcuts in the end: 
krita.general: "add_new_colorize_mask" 
krita.general: "show_tool_options" 
krita.general: "detailed_debug_paragraphs" 
krita.general: "file_print" 
krita.general: "file_print_preview" 
krita.general: "options_configure_keybinding" 
krita.general: "file_export_pdf" 
krita.general: "detailed_debug_styles" 
krita.general: "KritaShape/KisToolLazyBrush" 
krita.general: === end ===

----

System Information:
Krita
  Version: 3.3.1

OS Information
  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.4.0-97-generic
  Pretty Productname: Ubuntu 16.04.3 LTS
  Product Type: ubuntu
  Product Version: 16.04

OpenGL Info 
  Vendor:  NVIDIA Corporation 
  Renderer:  "GeForce GTX 1050 Ti/PCIe/SSE2" 
  Version:  "4.5.0 NVIDIA 384.90" 
  Shading language:  4.50 NVIDIA 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags(0x4),
depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1,
alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2,
swapInterval 0, profile  2) 
  Current format:    QSurfaceFormat(version 4.5, options QFlags(0x4),
depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8,
alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior 2,
swapInterval 0, profile  2) 
     Version: 4.5
     Supports deprecated functions true 
     is OpenGL ES: false

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to