tray: Remove calculate_client_x

This commit is contained in:
patrick96 2022-04-04 21:10:10 +02:00
parent bdfe655556
commit 9ad73da05f
No known key found for this signature in database
GPG Key ID: 521E5E03AEBCA1A7
2 changed files with 1 additions and 14 deletions

View File

@ -136,7 +136,6 @@ class tray_manager : public xpp::event::sink<evt::expose, evt::visibility_notify
unsigned short int calculate_w() const;
unsigned short int calculate_h() const;
int calculate_client_x(const xcb_window_t& win);
int calculate_client_y();
bool is_embedded(const xcb_window_t& win) const;

View File

@ -136,7 +136,7 @@ void tray_manager::setup() {
m_opts.foreground = conf.get(bs, "tray-foreground", m_bar_opts.foreground);
if (m_opts.background.alpha_i() != 255) {
m_log.trace("tray: enable transparency");
m_log.info("tray: enable transparency");
m_opts.transparent = true;
}
@ -773,18 +773,6 @@ unsigned short int tray_manager::calculate_h() const {
return m_opts.win_size.h;
}
/**
* Calculate x position of client window
*/
int tray_manager::calculate_client_x(const xcb_window_t& win) {
for (unsigned int i = 0; i < m_clients.size(); i++) {
if (m_clients[i].match(win)) {
return m_opts.spacing + m_opts.client_size.w * i;
}
}
return m_opts.spacing;
}
/**
* Calculate y position of client window
*/