mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue