Skip to content

Commit

Permalink
use window-created event to register windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Mar 14, 2024
1 parent affe54d commit 3e679a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions [email protected]/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const WindowManager = GObject.registerClass(
this._startingApps = []

this.signals.connect(
global.window_manager, 'map', this._onMapWindow.bind(this)
global.display, 'window-created', this._onWindowCreated.bind(this)
)

this.signals.connect(
Expand Down Expand Up @@ -406,8 +406,8 @@ export const WindowManager = GObject.registerClass(
this.registerWindow(meta_window)
}

_onMapWindow(shellwm, actor) {
this.registerActor(actor)
_onWindowCreated(display, meta_window) {
this.registerWindow(meta_window)
}

_onWindowEntered(display, index, meta_window) {
Expand Down

0 comments on commit 3e679a3

Please sign in to comment.