Skip to content

Commit

Permalink
Screenshot: Fix the interactive dialog being visible in screenshots o…
Browse files Browse the repository at this point in the history
…f the entire screen (#109)
  • Loading branch information
leolost2605 authored Aug 12, 2024
1 parent 9296e98 commit c0dd8de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Screenshot/Portal.vala
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,16 @@ public class Screenshot.Portal : Object {
cancelled = false;
}

screenshot.callback ();
dialog.destroy ();

// When we close our window, gala fades us out so wait until we are actually not visible anymore
// (The animation duration in gala is currently 195ms)
Timeout.add_once (200, () => screenshot.callback ());
});

dialog.show ();
yield;

dialog.destroy ();

if (cancelled) {
response = 1;
return;
Expand Down

0 comments on commit c0dd8de

Please sign in to comment.