fix(renderer): Destroy window on deconstruct
This commit is contained in:
parent
4268817c51
commit
6f2b437be3
@ -16,6 +16,7 @@ class renderer {
|
||||
|
||||
explicit renderer(connection& conn, const logger& logger, unique_ptr<font_manager> font_manager,
|
||||
const bar_settings& bar, const vector<string>& fonts);
|
||||
~renderer();
|
||||
|
||||
xcb_window_t window() const;
|
||||
|
||||
|
@ -128,6 +128,15 @@ renderer::renderer(connection& conn, const logger& logger, unique_ptr<font_manag
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Deconstruct instance
|
||||
*/
|
||||
renderer::~renderer() {
|
||||
if (m_window != XCB_NONE) {
|
||||
m_connection.destroy_window(m_window);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get output window
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user