Skip to content

Commit

Permalink
Add more checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter committed Dec 19, 2024
1 parent 7cb0c80 commit ebba18d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/WindowActorFetcher.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

/*
* Sends a signal when a window texture is ready.
* Sends a signal when a window actor is ready.
* Useful when you need to use window actor when the window was created.
*/
public class Gala.WindowActorFetcher : GLib.Object {
Expand All @@ -17,11 +17,11 @@ public class Gala.WindowActorFetcher : GLib.Object {
}

construct {
start_check.begin ();
}

private async void start_check () {
Idle.add (() => {
if (window == null) {
return Source.REMOVE;
}

unowned var window_actor = (Meta.WindowActor) window.get_compositor_private ();

if (window_actor != null) {
Expand Down

0 comments on commit ebba18d

Please sign in to comment.