mirror of
https://github.com/labwc/labwc.git
synced 2026-03-02 01:40:24 -05:00
Decorations: respect earlier client side decoration negotion result
Before this patch, it was impossible to differentiate between negotiations resulting in client side decorations and no negotiations at all. By adding an enum we are now able to differentiate between the two states.
This commit is contained in:
parent
082dc79555
commit
35e71ada82
3 changed files with 26 additions and 3 deletions
|
|
@ -48,9 +48,13 @@ handle_new_xdg_popup(struct wl_listener *listener, void *data)
|
|||
static bool
|
||||
has_ssd(struct view *view)
|
||||
{
|
||||
if (view->ssd_enabled) {
|
||||
/* View prefers server side decorations */
|
||||
switch (view->ssd_preference) {
|
||||
case LAB_SSD_PREF_SERVER:
|
||||
return true;
|
||||
case LAB_SSD_PREF_CLIENT:
|
||||
return false;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (!rc.xdg_shell_server_side_deco) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue