mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Refactored resizing functions into resize.c
This commit is contained in:
parent
ad1ca31dd5
commit
f6b16ca089
7 changed files with 527 additions and 475 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include <wlc/wlc.h>
|
||||
|
||||
extern struct wlc_interface interface;
|
||||
extern struct wlc_origin mouse_origin;
|
||||
extern uint32_t keys_pressed[32];
|
||||
|
||||
// set focus to current pointer location and return focused container
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
|
||||
extern swayc_t root_container;
|
||||
|
||||
extern int min_sane_w;
|
||||
extern int min_sane_h;
|
||||
|
||||
void init_layout(void);
|
||||
|
||||
void add_child(swayc_t *parent, swayc_t *child);
|
||||
|
|
|
|||
8
include/resize.h
Normal file
8
include/resize.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef _SWAY_RESIZE_H
|
||||
#define _SWAY_RESIZE_H
|
||||
|
||||
bool mouse_resize_tiled(struct wlc_origin prev_pos);
|
||||
bool resize_floating(struct wlc_origin prev_pos);
|
||||
bool resize_tiled(int amount, bool use_width);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue