tray: Remove calculate_client_x
This commit is contained in:
parent
bdfe655556
commit
9ad73da05f
@ -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;
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user