hyprbars: don't add to x11 noborder windows

This commit is contained in:
vaxerski 2023-05-14 18:01:37 +01:00
parent 63450e70f2
commit e368bd15e4

View file

@ -19,6 +19,7 @@ void onNewWindow(void* self, std::any data) {
// data is guaranteed // data is guaranteed
auto* const PWINDOW = std::any_cast<CWindow*>(data); auto* const PWINDOW = std::any_cast<CWindow*>(data);
if (!PWINDOW->m_bX11DoesntWantBorders)
HyprlandAPI::addWindowDecoration(PHANDLE, PWINDOW, new CHyprBar(PWINDOW)); HyprlandAPI::addWindowDecoration(PHANDLE, PWINDOW, new CHyprBar(PWINDOW));
} }