Bug 346020

Summary: Cannot release docker if undocking with no document opened, must Alt+F4 to escape
Product: [Applications] krita Reporter: Tyson Tan <tysontanx>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 2.9   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tyson Tan 2015-04-09 12:40:06 UTC
When no document is opened and I undock a docker, I will be stuck in the repositioning process. I cannot release the docker. It will follow my cursor in/outside the window. I can do nothing except hitting Alt+F4 to get out of this situation.

Reproducible: Always

Steps to Reproduce:
1. Open Krita;
2. Do not open document;
3. Undock Layers docker by dragging its title;

Actual Results:  
The docker gets undocked, but it cannot be released and follow the mouse forever. I cannot click anything.

Expected Results:  
You cannot undock anything without opening a document first.
Comment 1 Halla Rempt 2015-04-16 09:39:42 UTC
Hi Tyson!

Which window manager are you using? I don't get this problem with either KDE or Gnome 3 -- the dragging of dockers is also something implemented in Qt and the Window manager, not KDE, so we can't really influence the behaviour.
Comment 2 Tyson Tan 2015-04-16 12:54:22 UTC
Hi Boud.

My current settings:
* Window manager: Compiz (1:0.9.11.3+14.04.20150122-0ubuntu1) 
* Desktop environment: Gnome Fallback (3.8.x~3.10.x)

Trisquel 7 default:
* Window manager: Compton (0.1~beta2-1+7.0trisquel4). 
* Desktop environment: Gnome Fallback (3.8.x~3.10.x)

Notes:
* Compton lacks window snapping so I switched to Compiz. Compiz is also responsible for not focusing on the splash but the main window after startup.
* Trisquel 7 has customized Gnome components, probably theme/pre-configuration related. The version numbers are roughly the same as Ubuntu 14.04 LTS (which is a nightmarish mix of 3.8.x~3.10.x).
* I can reproduce this bug using metacity (1:2.34.13-0ubuntu4) as my window manager. metacity is the fallback default for all Gnome. It returns something like this when run from the console: “$metacity --replace >> Window manager warning: Invalid WM_TRANSIENT_FOR window 0x4000004 specified for 0x40000bb (krita)”.
* If a docker is already floating on startup, I cannot drag it unless I open a document. However, the docked ones can still be dragged to undock. Once undocked, they follow my cursor and grab all my mouse events.
Comment 3 Halla Rempt 2015-04-18 09:28:08 UTC
Yes, that makes it pretty certain that it's either a Qt bug, or a Window manager bug. We just can't do anything about the window manager flags for floating dockers from Krita, I'm afraid.
Comment 4 Tyson Tan 2015-04-20 03:36:59 UTC
A new finding:
This can be only triggered by stylus. Mouse works fine.

Workaround:
When using stylus to trigger this bug, you can use another pointing device (mouse) to release the docker.