mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-07 12:15:58 +01:00
hyprbars: don't add to x11 noborder windows
This commit is contained in:
parent
63450e70f2
commit
e368bd15e4
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue