This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Taking a screen shot of a non visible window

Tags: None
(comma "," separated)
Hari Seldon
Registered Member
Posts
6
Karma
0
OS
Hi everybody,

I am facing a little problem. I would like to take a screenshot of a given window (not of the entire screen) even if this window is minimized.
This kind of task has not been completelly solved by the TaskManager widget. When hovering with the mouse on a given tab it shows a preview of the selected window as it was the last time it was visible. I did not looked directly at the code but this is the actual behaviour.

I was wondering if there is a way to solve this problem or there is some issue that makes it unfeasible.

Thank you in advance.

Bye bye
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
What is the use-case for this?


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
Hari Seldon wrote:This kind of task has not been completelly solved by the TaskManager widget. When hovering with the mouse on a given tab it shows a preview of the selected window as it was the last time it was visible. I did not looked directly at the code but this is the actual behaviour.


For me the preview is updated, even if the window is minimized. In System Settings -> Desktop Effects -> Advanced, try different settings for "Keep window thumbnails" - I have "Always (Breaks minimization)".
(Which is a bit strange, not sure it means minimized windows though; with the other two options the thumbnail is not updated. It sounds like it should be the other way around to me.)

And as you probably already know, you need composite for it to work. I have no idea how the actual code works though.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
Hari Seldon
Registered Member
Posts
6
Karma
0
OS
@TheBlackCat

No particular purpose. I was just curious about it.

@Hans:
You are right.
Setting "Keep window thumbnails" to "Always (Breaks minimization)" the thumbnail is updated constantly.

So what I want to do is feasible but I still have to understand how to do that.

It would be nice if someone can point me to the piece of code in the TaskManager widget that contains this feature.
I looked for it but with bad luck. I'll continue searching.

Thanks for the reply

Bye
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
I wonder if it isn't actually implemented as a desktop effect, see "Taskbar Thumbnails". But as previously stated, I don't really know.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The retrieval of the thumbnails is done as a Desktop Effect I believe, much like the transparency of the Plasma panel.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient