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
parent 7914bdf8aa
commit 0eb8799df0
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;