mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
fixed plenty of bugs and crashes, and restored fullscreen/floating behavior. also fixed mode_toggle
This commit is contained in:
parent
b93f068611
commit
e2046e6aba
7 changed files with 135 additions and 114 deletions
|
|
@ -2,8 +2,8 @@
|
|||
#define _SWAY_CONTAINER_H
|
||||
#include <wlc/wlc.h>
|
||||
typedef struct sway_container swayc_t;
|
||||
|
||||
#include "layout.h"
|
||||
#include "focus.h"
|
||||
|
||||
enum swayc_types{
|
||||
C_ROOT,
|
||||
|
|
@ -78,11 +78,15 @@ swayc_t *destroy_container(swayc_t *container);
|
|||
// parent
|
||||
swayc_t *destroy_view(swayc_t *view);
|
||||
|
||||
// Container info
|
||||
bool swayc_is_fullscreen(swayc_t *view);
|
||||
|
||||
// Container Lookup
|
||||
|
||||
swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types);
|
||||
swayc_t *swayc_parent_by_layout(swayc_t *container, enum swayc_layouts);
|
||||
swayc_t *swayc_by_handle(wlc_handle handle);
|
||||
swayc_t *swayc_by_direction(swayc_t *container, enum movement_direction dir);
|
||||
|
||||
swayc_t *find_container(swayc_t *container, bool (*test)(swayc_t *view, void *data), void *data);
|
||||
void container_map(swayc_t *, void (*f)(swayc_t *, void *), void *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue