mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-29 21:37:42 -04:00
feat: grid and fair layout support resize tile window
This commit is contained in:
parent
160d1b9832
commit
1432fe7ea4
4 changed files with 741 additions and 101 deletions
10
src/mango.c
10
src/mango.c
|
|
@ -428,6 +428,12 @@ struct Client {
|
|||
bool enable_drop_area_draw;
|
||||
int32_t drop_direction;
|
||||
struct wlr_box drag_tile_float_backup_geom;
|
||||
float grid_col_per;
|
||||
float grid_row_per;
|
||||
float old_grid_col_per;
|
||||
float old_grid_row_per;
|
||||
int32_t grid_col_idx;
|
||||
int32_t grid_row_idx;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -4195,6 +4201,8 @@ void locksession(struct wl_listener *listener, void *data) {
|
|||
}
|
||||
|
||||
void init_client_properties(Client *c) {
|
||||
c->grid_col_per = 1.0f;
|
||||
c->grid_row_per = 1.0f;
|
||||
c->drop_direction = UNDIR;
|
||||
c->enable_drop_area_draw = false;
|
||||
c->isfocusing = false;
|
||||
|
|
@ -6216,8 +6224,6 @@ void tag_client(const Arg *arg, Client *target_client) {
|
|||
printstatus();
|
||||
}
|
||||
|
||||
void overview(Monitor *m) { grid(m); }
|
||||
|
||||
// 目标窗口有其他窗口和它同个tag就返回0
|
||||
uint32_t want_restore_fullscreen(Client *target_client) {
|
||||
Client *c = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue