mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
Use 'global.display' when 'global.screen' is not available (fixes tea cup animation for gnome 3.30)
This commit is contained in:
parent
e5a5e61398
commit
1a30460f4c
@ -112,7 +112,12 @@ const TeaTimeFullscreenNotification = new Lang.Class({
|
|||||||
},
|
},
|
||||||
show: function () {
|
show: function () {
|
||||||
if (typeof Layout.MonitorConstraint != 'undefined') {
|
if (typeof Layout.MonitorConstraint != 'undefined') {
|
||||||
this._monitorConstraint.index = global.screen.get_current_monitor()
|
// global.display was introduced in gnome-shell 3.30
|
||||||
|
if (typeof global.screen != 'undefined') {
|
||||||
|
this._monitorConstraint.index = global.screen.get_current_monitor();
|
||||||
|
} else {
|
||||||
|
this._monitorConstraint.index = global.display.get_current_monitor();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Main.pushModal(this._bin);
|
Main.pushModal(this._bin);
|
||||||
this._timeline.start();
|
this._timeline.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user