1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00

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 * Set window WM hints
*/ */
void tray_manager::set_wm_hints() { void tray_manager::set_wm_hints() {
// TODO use same visual as bar/tray window const xcb_visualid_t visual{m_bar_opts.x_data.visual->visual_id};
const xcb_visualid_t visual{m_connection.screen()->root_visual};
const uint32_t orientation{_NET_SYSTEM_TRAY_ORIENTATION_HORZ}; const uint32_t orientation{_NET_SYSTEM_TRAY_ORIENTATION_HORZ};
m_log.trace("bar: Set window WM_NAME / WM_CLASS"); m_log.trace("bar: Set window WM_NAME / WM_CLASS");