Bug 240746 - ksnapshot locks up the desktop with "Region" capture mode and a context menu being opened
Summary: ksnapshot locks up the desktop with "Region" capture mode and a context menu ...
Status: RESOLVED DUPLICATE of bug 210916
Alias: None
Product: ksnapshot
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Richard Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 18:35 UTC by Daniel Hahler
Modified: 2010-06-12 20:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Hahler 2010-06-04 18:35:27 UTC
Version:           unspecified (using KDE 4.4.3) 
OS:                Linux

Doing a "Region" capture will lock up the desktop (Enter and Esc get ignored).

WORKAROUND:
Go to a virtual terminal (e.g. Ctrl-Alt-F1) and kill ksnapshot from there.

Reproducible: Always

Steps to Reproduce:
1. Start ksnapshot
2. Select "Region" capture mode, setup a delay like "2 seconds"
3. Click "New Snapshot"
4. During the delay, open a context menu (e.g. right click on the desktop or some tray icon)
5. The region selector pops up, select some region.



Actual Results:  
Now, you cannot accept (Enter) nor abort (Esc) - the desktop is locked.

Expected Results:  
Screenshot should get taken, like when no context menu is opened.

This happens both in "awesome" window manager, as well as in "pure KDE".


Marking this as "Major", since users who do not know about switching to virtual terminal for the workaround might see no other option than rebooting.
Comment 1 jahnzee 2010-06-09 15:57:01 UTC
Same thing happens with an expanded <select> element (or any other dropdown, not necessarily in a web browser) with openSUSE 11.2 using KDE 4.3.1 "release 6"

Steps to reproduce:
1) open Firefox, go to any site with a select element (a drop-down).
2) hit printscreen
3) tell ksnapshot to take a delayed snapshot (in 3 seconds, for example) with capture mode Region
4) go to Firefox, expand the select (i.e. click it)
5) wait for ksnapshot to take a snapshot
6) ksnapshot will take over and will not respond to Enter or ESC


A few workarounds:
1) Select a region and double click it.  That's the equivalent of pressing enter
2) Use a keyboard combo to open a terminal (it'll open under ksnapshot -- you can't see it, but it's there) and type killall ksnapshot
3) Rather than use the printscreen key, open a terminal and type sleep 3; ksnapshot  
    - use the 3 second delay to expand the dropdown or open the context menu, then use GIMP or some other editor to crop the desired region.
Comment 2 Christoph Feck 2010-06-12 20:16:15 UTC

*** This bug has been marked as a duplicate of bug 210916 ***