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:
parent
11746455ee
commit
04fefa0a0e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user