Issue #303: Valentina stops accepting input on defocus (dismine/valentina)


#1

New issue 303: Valentina stops accepting input on defocus https://bitbucket.org/valentinateam/valentina/issue/303/valentina-stops-accepting-input-on-defocus

Susan Spencer:

Defocusing when a tool window is open makes Valentina stop accepting inputs

This is Valentina 0.3.1 on Gentoo Linux (running ~amd64, freshly updated), built with Qt 5.4.1, running under KDE 4 with KWin 4.11.17 or 4.11.19 on the standard X.org server version 1.17.1. KWin acts as compositor, with OpenGL support from the built-in GPU in the Core i7-2640M CPU. KWin is configured with click-to-focus policy.

  1. Start Valentina.
  2. Click the “Add a new pattern piece” button.
  3. In the “Measurements” window, choose “Use for creation pattern standard measurement table”.
  4. When the “Standard table” window appears, move focus away from Valentina (by clicking the desktop background, clicking another window or alt-tabbing).
  5. The “Standard table” window disappears, and the main window no longer accepts any input, not even closing the window. To kill it, run “killall valentina” from a shell.

This also happens with other tool windows, e.g.:

  1. Create a new pattern piece.
  2. Click the “Point at distance and angle” button.
  3. Click the default point, “A”.
  4. Click anywhere on the canvas.
  5. The “Point at distance and angle” window appears.
  6. Move focus away from Valentina. The “Point at distance and angle” window disappears, and the main window no longer accepts any input.

No output appears in the shell where Valentina was started, but after the bug manifests, every click on the unresponsive main Valentina window results in two identical lines appearing in ~/.xsession-errors:

kwin(2136) KWin::Workspace::takeActivity: takeActivity: not shown kwin(2136) KWin::Workspace::takeActivity: takeActivity: not shown

One strange detail is that “xlsclients -al”, which shows all my other open windows, never lists Valentina, neither before nor after the bug manifests