mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
Decorations: always default to client side decorations
This is required as both decoration protocol variants, the xdg one and the deprecated kde one, assume that an application that did not negotiate any decorations will render client side decorations.
This commit is contained in:
parent
ef30e3750d
commit
471e3837b7
1 changed files with 15 additions and 1 deletions
16
src/xdg.c
16
src/xdg.c
|
|
@ -545,7 +545,21 @@ xdg_surface_new(struct wl_listener *listener, void *data)
|
|||
node_descriptor_create(&view->scene_tree->node,
|
||||
LAB_NODE_DESC_VIEW, view);
|
||||
|
||||
/* In support of xdg_toplevel_decoration and kde_server_decoration */
|
||||
/*
|
||||
* The xdg_toplevel_decoration and kde_server_decoration protocols
|
||||
* expects clients to use client side decorations unless server side
|
||||
* decorations are negotiated. So we default to client side ones here.
|
||||
*
|
||||
* TODO: We may want to assign the default based on a new rc.xml
|
||||
* config option like "enforce-server" in the future.
|
||||
*/
|
||||
view->ssd_preference = LAB_SSD_PREF_CLIENT;
|
||||
|
||||
/*
|
||||
* xdg_toplevel_decoration and kde_server_decoration use this
|
||||
* pointer to connect the view to a decoration object that may
|
||||
* be created in the future.
|
||||
*/
|
||||
xdg_surface->data = view;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue