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
1 changed files with 2 additions and 1 deletions

View File

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