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

Hide Window on Clicking Snip Button #11

Closed
candiedoperation opened this issue Sep 3, 2021 · 3 comments
Closed

Hide Window on Clicking Snip Button #11

candiedoperation opened this issue Sep 3, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@candiedoperation
Copy link

@amka, On clicking the snip button, using GtkWindow.Hide() on the main window would help taking screenshots easily instead of moving Frog's Window all over the desktop

Originally posted by @candiedoperation in #7 (comment)

@amka amka self-assigned this Sep 3, 2021
@amka amka added enhancement New feature or request good first issue Good for newcomers labels Sep 3, 2021
@hezral
Copy link

hezral commented Sep 7, 2021

Came here to suggest this as well.

What i did for Clips was to check if it is the active app using xlib and connect the "state-flags-changed" signal for the main window to trigger the check. Would be interested if there is a better way.

I had this app idea too but was focused on building Clips, i like this app 😄

amka pushed a commit that referenced this issue Sep 7, 2021
@amka
Copy link
Contributor

amka commented Sep 7, 2021

Well, I've done this by doing capture in an async way. Just call the capture() method and then .hide(). Use .present() on callback of the capture() method.

@amka amka closed this as completed Sep 7, 2021
@seltzered
Copy link

seltzered commented Nov 3, 2024

Do others notice the window actually hide? I've been using Frog for a while (currently on 1.5.2) and not sure I've ever seen the window actually hide away when clicking the 'Take a Screenshot' button.

EDIT: There may be a bug here where the timing is off - I notice the window hide after the screenshot is taken for a brief second then reappear. Perhaps something changed when GNOME redid screencapture sometime around 2022, or with increasing use of Wayland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants