mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
refactored view visibility
- replace visibilty mask integers with an enum - set output's visibilty mask on creation - added update_visibility to manually update a containers visibility (e.g. when it moved to an invisible workspace)
This commit is contained in:
parent
1efda79bf2
commit
f22c937953
4 changed files with 27 additions and 8 deletions
|
|
@ -56,6 +56,11 @@ struct sway_container {
|
|||
struct sway_container *focused;
|
||||
};
|
||||
|
||||
enum view_visibility {
|
||||
INVISIBLE = 1,
|
||||
VISIBLE = 2
|
||||
};
|
||||
|
||||
// Container Creation
|
||||
|
||||
swayc_t *new_output(wlc_handle handle);
|
||||
|
|
@ -106,4 +111,7 @@ void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *);
|
|||
void set_view_visibility(swayc_t *view, void *data);
|
||||
void reset_gaps(swayc_t *view, void *data);
|
||||
|
||||
|
||||
void update_visibility(swayc_t *container);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue