mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -05:00
Rewrite of resize command to make it more sane
This commit is contained in:
parent
c9935507f2
commit
f589731f29
5 changed files with 60 additions and 47 deletions
|
|
@ -33,12 +33,12 @@ struct sway_container {
|
|||
enum swayc_layouts layout;
|
||||
|
||||
// Not including borders or margins
|
||||
int width, height;
|
||||
double width, height;
|
||||
|
||||
// Used for setting floating geometry
|
||||
int desired_width, desired_height;
|
||||
|
||||
int x, y;
|
||||
double x, y;
|
||||
|
||||
bool visible;
|
||||
bool is_floating;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,6 @@ swayc_t *get_focused_container(swayc_t *parent);
|
|||
swayc_t *get_swayc_for_handle(wlc_handle handle, swayc_t *parent);
|
||||
swayc_t *get_swayc_in_direction(swayc_t *container, enum movement_direction dir);
|
||||
|
||||
void recursive_resize(swayc_t *container, double amount, enum movement_direction dir);
|
||||
void recursive_resize(swayc_t *container, double amount, enum wlc_resize_edge edge);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue