trayWindow.requestActivate();\r
var trayWindowX;\r
var trayWindowY;\r
- var tbOrientation = systrayBackend.taskbarOrientation();\r
+ var taskbarOrientation = systrayBackend.taskbarOrientation();\r
var taskbarRect = systrayBackend.taskbarRect();\r
var screenRect = Qt.rect(0, 0, Screen.width, Screen.height)\r
if (Qt.platform.os === "linux") {\r
screenRect.y = Screen.virtualY\r
}\r
\r
- switch(tbOrientation) {\r
+ switch(taskbarOrientation) {\r
// Platform separation here: Windows and macOS draw coordinates have to be given in screen-coordinates\r
// KDE and most xorg based DEs expect them as virtual coordinates\r
case Systray.Bottom:\r
trayWindowX = screenRect.right - trayWindow.width - 4;\r
\r
if (Qt.platform.os === "linux") {\r
- trayWindowX -= tbOrientation === Systray.Right ? taskbarRect.width : 0;\r
+ trayWindowX -= taskbarOrientation === Systray.Right ? taskbarRect.width : 0;\r
}\r
}\r
if (trayWindowX <= screenRect.left) {\r
trayWindowX = screenRect.left + 4;\r
\r
if (Qt.platform.os === "linux") {\r
- trayWindowX += tbOrientation === Systray.Left ? taskbarRect.width : 0;\r
+ trayWindowX += taskbarOrientation === Systray.Left ? taskbarRect.width : 0;\r
}\r
}\r
if (trayWindowY <= screenRect.top) {\r
trayWindowY = screenRect.top + 4;\r
\r
if (Qt.platform.os === "linux") {\r
- trayWindowY += tbOrientation === Systray.Top ? taskbarRect.height : 0;\r
+ trayWindowY += taskbarOrientation === Systray.Top ? taskbarRect.height : 0;\r
}\r
}\r
if (screenRect.bottom <= trayWindowY + trayWindow.height) {\r