Skip to content

Commit

Permalink
window manager: remove unused events
Browse files Browse the repository at this point in the history
also fixes issue #153

events without arguments crash gnome-shell 3.32
  • Loading branch information
jonian committed Jan 17, 2020
1 parent 119deaa commit 1133a3f
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions [email protected]/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,8 @@ var ServerDecorations = class ServerDecorations {
}
}

var MetaWindow = GObject.registerClass({
Signals: {
'title-changed': {},
'state-changed': {}
}
}, class UniteMetaWindow extends GObject.Object {
var MetaWindow = GObject.registerClass(
class UniteMetaWindow extends GObject.Object {
_init(win) {
win._uniteShellManaged = true

Expand Down Expand Up @@ -289,12 +285,10 @@ var MetaWindow = GObject.registerClass({

_onStateChanged() {
this.syncComponents()
this.emit('state-changed')
}

_onTitleChanged() {
this.syncAppmenu()
this.emit('title-changed')
}

destroy() {
Expand All @@ -308,11 +302,8 @@ var MetaWindow = GObject.registerClass({
}
)

var WindowManager = GObject.registerClass({
Signals: {
'focus-changed': {}
}
}, class UniteWindowManager extends GObject.Object {
var WindowManager = GObject.registerClass(
class UniteWindowManager extends GObject.Object {
_init() {
this.windows = new Map()
this.signals = new Handlers.Signals()
Expand Down Expand Up @@ -403,8 +394,6 @@ var WindowManager = GObject.registerClass({
if (this.focusWindow) {
this.focusWindow.syncComponents()
}

this.emit('focus-changed')
}

_onAppmenuChanged() {
Expand Down

0 comments on commit 1133a3f

Please sign in to comment.