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:
Consolatis 2023-03-22 19:53:17 +01:00 committed by Johan Malm
parent 082dc79555
commit 35e71ada82
3 changed files with 26 additions and 3 deletions

View file

@ -20,6 +20,12 @@ enum view_type {
#endif
};
enum ssd_preference {
LAB_SSD_PREF_UNSPEC = 0,
LAB_SSD_PREF_CLIENT,
LAB_SSD_PREF_SERVER,
};
struct view;
struct view_impl {
void (*configure)(struct view *view, struct wlr_box geo);
@ -63,6 +69,7 @@ struct view {
bool mapped;
bool been_mapped;
bool ssd_enabled;
enum ssd_preference ssd_preference;
bool minimized;
bool maximized;
bool fullscreen;