extension-tool: Fix multi-monitor handling in example extension
This commit is contained in:
parent
19ba9a98b8
commit
e865db57e0
@ -42,8 +42,8 @@ function _showHello() {
|
||||
|
||||
let monitor = Main.layoutManager.primaryMonitor;
|
||||
|
||||
text.set_position(Math.floor(monitor.width / 2 - text.width / 2),
|
||||
Math.floor(monitor.height / 2 - text.height / 2));
|
||||
text.set_position(monitor.x + Math.floor(monitor.width / 2 - text.width / 2),
|
||||
monitor.y + Math.floor(monitor.height / 2 - text.height / 2));
|
||||
|
||||
Tweener.addTween(text,
|
||||
{ opacity: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user