Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No preview for minimized windows #160

Open
tomas-chrastina opened this issue Jan 6, 2021 · 3 comments
Open

No preview for minimized windows #160

tomas-chrastina opened this issue Jan 6, 2021 · 3 comments

Comments

@tomas-chrastina
Copy link

Hello.

When I minimize window, its preview is replaced with program icon. It is kind of confusing, and not helping to distinguish windows.

Is there any way this could/should work, or is this by design?

Thank you in advance.

@xuzhen
Copy link
Contributor

xuzhen commented Jan 10, 2021

We can't get preview image of minimized window due to the limitation of X11 APIs. If you really want this feature, try the patches in this issue

@tomas-chrastina
Copy link
Author

tomas-chrastina commented Jan 12, 2021

What about an option to capture window preview when minimizing?
I'm not familiar with X11 programming, but I think there are some hooks that wold allow taking of screenshot right before window is minimized? And use it, even when it's not actualized.
I would prefer this option rather than icon and visual unappealing mix of icon/previews.

VisibilityNotify Events ?

@xuzhen
Copy link
Contributor

xuzhen commented Feb 22, 2021

There is no such hook in the X11's server-client model. All the ***Notify events are sent after the corresponding operation is completed. So there is no way to take a screenshot right before the window is minimized.

A workaround is to take a screenshot when certain properties of the window are updated, but this will consume more system resources and may also cause some problems. I've committed xuzhen@80acc68 to implement this feature. It's experimental and not be enabled by default. If you are willing to try this feature, enable it in dbx_preference.

My PPA has already updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants