mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Arrange windows on desktop
This commit is contained in:
parent
289ba64bde
commit
ce1936bc65
8 changed files with 253 additions and 6 deletions
|
|
@ -132,4 +132,6 @@ swayc_t *new_output(struct sway_output *sway_output);
|
|||
swayc_t *new_workspace(swayc_t *output, const char *name);
|
||||
swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view);
|
||||
|
||||
swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ void init_layout(void);
|
|||
void add_child(struct sway_container *parent, struct sway_container *child);
|
||||
enum swayc_layouts default_layout(struct sway_container *output);
|
||||
void sort_workspaces(struct sway_container *output);
|
||||
void arrange_windows(struct sway_container *container, double width, double height);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ struct sway_output {
|
|||
struct sway_server *server;
|
||||
struct timespec last_frame;
|
||||
struct wl_listener frame;
|
||||
struct wl_listener resolution;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -52,6 +52,8 @@ struct sway_view {
|
|||
struct {
|
||||
const char *(*get_prop)(struct sway_view *view,
|
||||
enum sway_view_prop prop);
|
||||
void (*set_dimensions)(struct sway_view *view,
|
||||
int width, int height);
|
||||
} iface;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue