feat: grid and fair layout support resize tile window
Some checks failed
Sync website / sync-website (push) Has been cancelled
Sync wiki / sync-wiki (push) Has been cancelled

This commit is contained in:
DreamMaoMao 2026-05-16 17:32:39 +08:00
parent 04a3074fb4
commit 65c9ac6dd2
4 changed files with 741 additions and 101 deletions

View file

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