mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 13:45:58 +01:00
Fix initial xdg-decoration toplevel decoration mode negotiation
Clients using zxdg_decoration_manager_v1::get_toplevel_decoration may expect a receiving a zxdg_toplevel_decoration_v1::configure event to determine the initial decoration mode, without having to go through a zxdg_toplevel_decoration_v1::set_mode request. Hyprland was not sending this event, resulting in unwanted decorations being drawn. Specifically, clients using libdecor, e.g. applications using recent GLFW, would draw GTK decorations with artefacts. This change fixes these.
This commit is contained in:
parent
66acdfe2ad
commit
e08195d240
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ CXDGDecoration::CXDGDecoration(SP<CZxdgToplevelDecorationV1> resource_, wl_resou
|
||||||
LOGM(LOG, "unsetMode. Sending MODE_SERVER_SIDE.");
|
LOGM(LOG, "unsetMode. Sending MODE_SERVER_SIDE.");
|
||||||
resource->sendConfigure(ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE);
|
resource->sendConfigure(ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
resource->sendConfigure(ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CXDGDecoration::good() {
|
bool CXDGDecoration::good() {
|
||||||
|
|
Loading…
Reference in a new issue