fix(tray): Correct y-position with border

The border size was not taken into account when calculating the tray
icon's y-position
This commit is contained in:
patrick96 2023-03-25 20:17:22 +01:00
parent 11746455ee
commit 04fefa0a0e
No known key found for this signature in database
GPG Key ID: 521E5E03AEBCA1A7

View File

@ -444,7 +444,7 @@ unsigned manager::calculate_w() const {
* Calculate y position of client window * Calculate y position of client window
*/ */
int manager::calculate_client_y() { 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;
} }
/** /**