summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Szombierski <[email protected]>2025-10-17 21:51:44 +0200
committerVictor Kareh <[email protected]>2025-10-30 17:19:14 -0400
commita9341a107e8dfd336fb481d98659ec1399bf1442 (patch)
tree168da379b95f02944c6f4af88948ca76bbbe4a22
parent26d4659ad4cff509ad5bd893780443a0568f875d (diff)
downloadmate-panel-master.tar.bz2
mate-panel-master.tar.xz
wncklet: fix preview window positioning for right & downHEADmaster
The monitor origin needs to be taken into account.
-rw-r--r--applets/wncklet/window-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index c027e3f5..17821cdd 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -367,14 +367,14 @@ preview_window_reposition (WnckTasklist *tl,
x_pos = monitor_geom.width + monitor_geom.x - width - tasklist->size - PREVIEW_PADDING;
break;
case MATE_PANEL_APPLET_ORIENT_RIGHT:
- x_pos = tasklist->size + PREVIEW_PADDING;
+ x_pos = monitor_geom.x + tasklist->size + PREVIEW_PADDING;
break;
case MATE_PANEL_APPLET_ORIENT_UP:
y_pos = monitor_geom.height + monitor_geom.y - height - tasklist->size - PREVIEW_PADDING;
break;
case MATE_PANEL_APPLET_ORIENT_DOWN:
default:
- y_pos = tasklist->size + PREVIEW_PADDING;
+ y_pos = monitor_geom.y + tasklist->size + PREVIEW_PADDING;
break;
}