Refactored resizing functions into resize.c

This commit is contained in:
Luminarys 2015-08-21 22:26:11 -05:00
parent ad1ca31dd5
commit f6b16ca089
7 changed files with 527 additions and 475 deletions

View file

@ -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

View file

@ -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
View 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