tray: Reuse bar visual

This commit is contained in:
patrick96 2022-04-04 21:07:40 +02:00
parent 81d1f74b7b
commit bdfe655556
No known key found for this signature in database
GPG Key ID: 521E5E03AEBCA1A7

View File

@ -570,8 +570,7 @@ void tray_manager::create_bg() {
* Set window WM hints
*/
void tray_manager::set_wm_hints() {
// TODO use same visual as bar/tray window
const xcb_visualid_t visual{m_connection.screen()->root_visual};
const xcb_visualid_t visual{m_bar_opts.x_data.visual->visual_id};
const uint32_t orientation{_NET_SYSTEM_TRAY_ORIENTATION_HORZ};
m_log.trace("bar: Set window WM_NAME / WM_CLASS");