fix(tray): Add compton atom to exclude shadow
This commit is contained in:
parent
84d58e7619
commit
7018357e47
@ -18,6 +18,8 @@ namespace xutils {
|
|||||||
void pack_values(uint32_t mask, const xcb_params_configure_window_t* src, uint32_t* dest);
|
void pack_values(uint32_t mask, const xcb_params_configure_window_t* src, uint32_t* dest);
|
||||||
|
|
||||||
void visibility_notify(connection& conn, const xcb_window_t& win, xcb_visibility_t state);
|
void visibility_notify(connection& conn, const xcb_window_t& win, xcb_visibility_t state);
|
||||||
|
|
||||||
|
void compton_shadow_exclude(connection& conn, const xcb_window_t& win);
|
||||||
}
|
}
|
||||||
|
|
||||||
POLYBAR_NS_END
|
POLYBAR_NS_END
|
||||||
|
@ -527,6 +527,8 @@ void tray_manager::create_window() { // {{{
|
|||||||
|
|
||||||
m_connection.create_window_checked(
|
m_connection.create_window_checked(
|
||||||
scr->root_depth, m_tray, scr->root, x, y, w, h, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, scr->root_visual, mask, values);
|
scr->root_depth, m_tray, scr->root, x, y, w, h, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, scr->root_visual, mask, values);
|
||||||
|
|
||||||
|
xutils::compton_shadow_exclude(m_connection, m_tray);
|
||||||
} // }}}
|
} // }}}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include "x11/atoms.hpp"
|
||||||
#include "x11/xutils.hpp"
|
#include "x11/xutils.hpp"
|
||||||
#include "x11/connection.hpp"
|
#include "x11/connection.hpp"
|
||||||
#include "x11/xlib.hpp"
|
#include "x11/xlib.hpp"
|
||||||
@ -45,6 +46,11 @@ namespace xutils {
|
|||||||
const char* data = reinterpret_cast<const char*>(notify.get());
|
const char* data = reinterpret_cast<const char*>(notify.get());
|
||||||
conn.send_event(true, win, XCB_EVENT_MASK_NO_EVENT, data);
|
conn.send_event(true, win, XCB_EVENT_MASK_NO_EVENT, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void compton_shadow_exclude(connection& conn, const xcb_window_t& win) {
|
||||||
|
const uint32_t shadow = 0;
|
||||||
|
conn.change_property(XCB_PROP_MODE_REPLACE, win, _COMPTON_SHADOW, XCB_ATOM_CARDINAL, 32, 1, &shadow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
POLYBAR_NS_END
|
POLYBAR_NS_END
|
||||||
|
Loading…
Reference in New Issue
Block a user