From 04fefa0a0e740738c5aeaf4cef3a728cfea6b842 Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sat, 25 Mar 2023 20:17:22 +0100
Subject: [PATCH] fix(tray): Correct y-position with border
The border size was not taken into account when calculating the tray
icon's y-position
---
src/x11/tray_manager.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/x11/tray_manager.cpp b/src/x11/tray_manager.cpp
index f364d679..1b8b5591 100644
--- a/src/x11/tray_manager.cpp
+++ b/src/x11/tray_manager.cpp
@@ -444,7 +444,7 @@ unsigned manager::calculate_w() const {
* Calculate y position of client window
*/
int manager::calculate_client_y() {
- return (m_bar_opts.inner_area(true).height - m_opts.client_size.h) / 2;
+ return (m_bar_opts.outer_area(true).height - m_opts.client_size.h) / 2;
}
/**