mirror of
https://github.com/brl/mutter.git
synced 2025-08-09 01:44:41 +00:00
window: Replace placement constrained bool with state
Using an actual state instead of a boolean makes it clearer it's a state that changes. Eventually we might add more state too. https://gitlab.gnome.org/GNOME/mutter/merge_requests/496
This commit is contained in:

committed by
Florian Müllner

parent
b4f1569640
commit
f580b28a27
@@ -142,6 +142,12 @@ typedef struct _MetaPlacementRule
|
||||
int height;
|
||||
} MetaPlacementRule;
|
||||
|
||||
typedef enum _MetaPlacementState
|
||||
{
|
||||
META_PLACEMENT_STATE_UNCONSTRAINED,
|
||||
META_PLACEMENT_STATE_CONSTRAINED,
|
||||
} MetaPlacementState;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
META_EDGE_CONSTRAINT_NONE = 0,
|
||||
@@ -524,7 +530,7 @@ struct _MetaWindow
|
||||
guint bypass_compositor;
|
||||
|
||||
MetaPlacementRule *placement_rule;
|
||||
gboolean placement_rule_constrained;
|
||||
MetaPlacementState placement_state;
|
||||
int constrained_placement_rule_offset_x;
|
||||
int constrained_placement_rule_offset_y;
|
||||
|
||||
|
Reference in New Issue
Block a user