Remove unused parameter

This commit is contained in:
patrick96 2022-03-06 23:43:06 +01:00
parent 7acd4c703c
commit 6fa85d2ce8
No known key found for this signature in database
GPG Key ID: 521E5E03AEBCA1A7
2 changed files with 8 additions and 8 deletions

View File

@ -113,9 +113,9 @@ class tray_manager : public xpp::event::sink<evt::expose, evt::visibility_notify
protected:
void reconfigure_window();
void reconfigure_clients();
void reconfigure_bg(bool realloc = false);
void reconfigure_bg();
void refresh_window();
void redraw_window(bool realloc_bg = false);
void redraw_window();
void query_atom();
void create_window();

View File

@ -374,12 +374,12 @@ void tray_manager::reconfigure_clients() {
/**
* Reconfigure root pixmap
*/
void tray_manager::reconfigure_bg(bool realloc) {
void tray_manager::reconfigure_bg() {
if (!m_opts.transparent || m_clients.empty() || !m_mapped) {
return;
};
m_log.trace("tray: Reconfigure bg (realloc=%i)", realloc);
m_log.trace("tray: Reconfigure bg");
if (!m_context) {
return m_log.err("tray: no context for drawing the background");
@ -447,9 +447,9 @@ void tray_manager::refresh_window() {
/**
* Redraw window
*/
void tray_manager::redraw_window(bool realloc_bg) {
void tray_manager::redraw_window() {
m_log.info("Redraw tray container (id=%s)", m_connection.id(m_tray));
reconfigure_bg(realloc_bg);
reconfigure_bg();
refresh_window();
}
@ -981,7 +981,7 @@ void tray_manager::handle(const evt::property_notify& evt) {
// React an wallpaper change, if bar has transparency
if (m_opts.transparent && (evt->atom == _XROOTPMAP_ID || evt->atom == _XSETROOT_ID || evt->atom == ESETROOT_PMAP_ID)) {
redraw_window(true);
redraw_window();
return;
}
@ -1117,7 +1117,7 @@ bool tray_manager::on(const signals::ui::dim_window& evt) {
}
bool tray_manager::on(const signals::ui::update_background&) {
redraw_window(true);
redraw_window();
return false;
}