mirror of
https://github.com/swaywm/sway.git
synced 2026-04-24 06:46:22 -04:00
view: add lock/unlock functions
This commit is contained in:
parent
3809e80ef9
commit
258f167528
2 changed files with 26 additions and 0 deletions
|
|
@ -70,6 +70,9 @@ struct sway_view {
|
|||
// Used when changing a view from tiled to floating.
|
||||
int natural_width, natural_height;
|
||||
|
||||
bool surface_locked;
|
||||
uint32_t lock_seq;
|
||||
|
||||
char *title_format;
|
||||
|
||||
bool using_csd;
|
||||
|
|
@ -341,6 +344,10 @@ void view_set_urgent(struct sway_view *view, bool enable);
|
|||
|
||||
bool view_is_urgent(struct sway_view *view);
|
||||
|
||||
void view_lock_pending(struct sway_view *view);
|
||||
|
||||
void view_unlock_cached(struct sway_view *view);
|
||||
|
||||
bool view_is_transient_for(struct sway_view *child, struct sway_view *ancestor);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue