From b5a6fe2bc2393183da8f08108b0e590714981146 Mon Sep 17 00:00:00 2001 From: Martin Dimitrov Date: Mon, 19 Sep 2022 11:20:49 -0400 Subject: [PATCH] get work area from the primary display --- extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension.js b/extension.js index 9ab0810..3ee3dbf 100644 --- a/extension.js +++ b/extension.js @@ -41,7 +41,7 @@ function patcher(obj, live, method, original, patch) { eval(`${live}.${method} = ${newBody}`); } -const getMessageTraySize = () => ({ width, height } = Main.layoutManager.getWorkAreaForMonitor(global.display.get_current_monitor())); +const getMessageTraySize = () => ({ width, height } = Main.layoutManager.getWorkAreaForMonitor(global.display.get_primary_monitor())); const originalShow = MessageTray.prototype._showNotification; const originalHide = MessageTray.prototype._hideNotification;