summaryrefslogtreecommitdiff
path: root/include/yasl/yasl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/yasl/yasl.h')
-rw-r--r--include/yasl/yasl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/yasl/yasl.h b/include/yasl/yasl.h
index e2c1d77..3b3b712 100644
--- a/include/yasl/yasl.h
+++ b/include/yasl/yasl.h
@@ -153,6 +153,7 @@ enum yasl_surface_state : uint32_t {
YASL_STATE_ACTIVATED = 1 << 2, /**< Active window. */
YASL_STATE_SUSPENDED = 1 << 3, /**< Compositor reports suspension. */
YASL_STATE_CSD = 1 << 4, /**< Backend reports client-side decorations. */
+ YASL_STATE_TILED = 1 << 5, /**< At least one edge is tiled; currently reported by Wayland. */
};
/** System cursor shapes. HIDDEN preserves pointer input; NONE is its compatibility alias. */
@@ -448,7 +449,7 @@ struct yasl_window_cbs {
void (*configure)(struct yasl_surface *s, struct yasl_geometry geometry, void *ud);
/** Window/popup close request; application is responsible for destruction. */
void (*close)(struct yasl_surface *s, void *ud);
- /** Reported yasl_surface_state bitmask changed. */
+ /** Reported yasl_surface_state bitmask changed; matches yasl_surface_state(s). */
void (*state)(struct yasl_surface *s, uint32_t state, void *ud);
/** YASL surface-drag target hover, leave, or drop; pos is in device pixels. */
void (*drag)(struct yasl_surface *s, enum yasl_drag_event ev,
@@ -746,6 +747,8 @@ YASL_API struct yasl_geometry yasl_surface_geometry(const struct yasl_surface *s
* @param s Surface, or NULL.
* @return A bitmask of yasl_surface_state values, or zero for NULL.
* Flags are reported state, not requests; unsupported states are absent.
+ * Flags may coexist. Windowed and floating have no separate flags. Suspension
+ * does not imply minimization, and no minimized flag is reported.
*/
YASL_API uint32_t yasl_surface_state(const struct yasl_surface *s);
/* Timing uses monotonic nanoseconds. Check source before treating timestamps