Bug 370945 - 'Window under cursor' works more like 'all windows of an application'
Summary: 'Window under cursor' works more like 'all windows of an application'
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 09:53 UTC by Achim Bohnet
Modified: 2017-06-13 17:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
dialog + mainwindow snapshoted by 'window under cursor' (53.23 KB, image/png)
2016-10-16 09:55 UTC, Achim Bohnet
Details
Successful file pop-up screenshot (58.38 KB, image/png)
2017-05-27 17:05 UTC, Francisco Fernandes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Bohnet 2016-10-16 09:53:36 UTC
When I click on a dialog in the 'window under cursor' mode I expect that spectable only makes a screenshot of the dialog and ignores e.g. the main window of the application.

From solution description of bug 369330 it looks like this was intended, but at least I don't think that is what a user expects from an action labeled 'window under cursor.  At least I didn't.

Reproducible: Always

Steps to Reproduce:
1. Open Kate
2. open file dialog with Ctrl-o
3. Start spectacle and select 'window under cursor'
4. Click on the kate open file dialog


Actual Results:  
I get a screenshot of the dialog + kates main window

Expected Results:  
I get a screenshot of the dialog only, because that's the window I've clicked.
Comment 1 Achim Bohnet 2016-10-16 09:55:20 UTC
Created attachment 101580 [details]
dialog + mainwindow  snapshoted by 'window under cursor'
Comment 2 Peter Wu 2016-10-20 20:55:18 UTC
There is the "Capture the only pop-up" option that seems to do what you expect. Changing the default value could probably be done, do you have suggestions for improvement in this area?
Comment 3 Francisco Fernandes 2017-04-18 01:45:45 UTC
I confirmed the behavior described by @Achim in my these environment:

  * Plasma 5.9.4
  * KDE Frameworks 5.33.0
  * Qt 5.8.0
  * XCB windowing system

Also, when I click "Capture the only pop-up" and do the "On click" screenshot Delay setting, nothing happens and the 'Printscreen' button shortcut stop working. So, if I want to take another shot, I have to call from KRunner or from the Application launcher.
Comment 4 Francisco Fernandes 2017-05-27 17:05:06 UTC
Created attachment 105734 [details]
Successful file pop-up screenshot

Successful screenshot with Window Under Cursor settings with the 'Capture the current pop-up only'.
Comment 5 Francisco Fernandes 2017-05-27 17:08:30 UTC
The attached screenshot was a successful 'Capture the current pop-up only' with the following settings:

    * Plasma 5.9.5
    * KDE Frameworks 5.34.0
    * Qt 5.8.0 (built against 5.8.0)
    * The xcb windowing system

The described behavior wasn't happening anymore and is working as described by @PeterWu.
Comment 6 Christoph Feck 2017-06-13 17:33:08 UTC
Thanks for the update; closing.