mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
extension-tool: Fix multi-monitor handling in example extension
This commit is contained in:
parent
19ba9a98b8
commit
e865db57e0
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue