mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-01 21:37:35 -04:00
feat: grid and fair layout support resize tile window
This commit is contained in:
parent
04a3074fb4
commit
65c9ac6dd2
4 changed files with 741 additions and 101 deletions
10
src/mango.c
10
src/mango.c
|
|
@ -427,6 +427,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 {
|
||||
|
|
@ -4270,6 +4276,8 @@ static void iter_xdg_scene_buffers(struct wlr_scene_buffer *buffer, int32_t sx,
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
@ -6207,8 +6215,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