Skip to content

Commit c998575

Browse files
soitchujmmaranan
authored andcommitted
fix: remove potentially dangling pointer timer
1 parent bf77e69 commit c998575

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/extension/window.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ export class WindowManager extends GObject.Object {
8686
}
8787

8888
pointerLoopInit() {
89+
if (this._pointerFocusTimeoutId) {
90+
GLib.Source.remove(this._pointerFocusTimeoutId);
91+
}
92+
8993
this._pointerFocusTimeoutId = GLib.timeout_add(
9094
GLib.PRIORITY_DEFAULT,
9195
16,

0 commit comments

Comments
 (0)