mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-27 21:37:30 -04:00
break change: remove tgmix layout
This commit is contained in:
parent
d132f955c4
commit
4981b07a58
7 changed files with 6 additions and 30 deletions
|
|
@ -707,8 +707,7 @@ void resize_tile_client(Client *grabc, bool isdrag, int32_t offsetx,
|
|||
const Layout *current_layout =
|
||||
grabc->mon->pertag->ltidxs[grabc->mon->pertag->curtag];
|
||||
if (current_layout->id == TILE || current_layout->id == DECK ||
|
||||
current_layout->id == CENTER_TILE || current_layout->id == RIGHT_TILE ||
|
||||
(current_layout->id == TGMIX && grabc->mon->visible_tiling_clients <= 3)
|
||||
current_layout->id == CENTER_TILE || current_layout->id == RIGHT_TILE
|
||||
|
||||
) {
|
||||
resize_tile_master_horizontal(grabc, isdrag, offsetx, offsety, time,
|
||||
|
|
|
|||
|
|
@ -993,15 +993,4 @@ monocle(Monitor *m) {
|
|||
}
|
||||
if ((c = focustop(m)))
|
||||
wlr_scene_node_raise_to_top(&c->scene->node);
|
||||
}
|
||||
|
||||
void tgmix(Monitor *m) {
|
||||
int32_t n = m->visible_tiling_clients;
|
||||
if (n <= 3) {
|
||||
tile(m);
|
||||
return;
|
||||
} else {
|
||||
grid(m);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11,7 +11,6 @@ static void vertical_overview(Monitor *m);
|
|||
static void vertical_grid(Monitor *m);
|
||||
static void vertical_scroller(Monitor *m);
|
||||
static void vertical_deck(Monitor *mon);
|
||||
static void tgmix(Monitor *m);
|
||||
static void dwindle(Monitor *m);
|
||||
|
||||
/* layout(s) */
|
||||
|
|
@ -29,7 +28,6 @@ enum {
|
|||
VERTICAL_GRID,
|
||||
VERTICAL_DECK,
|
||||
RIGHT_TILE,
|
||||
TGMIX,
|
||||
DWINDLE,
|
||||
};
|
||||
|
||||
|
|
@ -48,6 +46,5 @@ Layout layouts[] = {
|
|||
{"VT", vertical_tile, "vertical_tile", VERTICAL_TILE}, // 垂直平铺布局
|
||||
{"VG", vertical_grid, "vertical_grid", VERTICAL_GRID}, // 垂直格子布局
|
||||
{"VK", vertical_deck, "vertical_deck", VERTICAL_DECK}, // 垂直卡片布局
|
||||
{"TG", tgmix, "tgmix", TGMIX}, // 混合布局
|
||||
{"DW", dwindle, "dwindle", DWINDLE},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue