mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-25 06:59:50 -05:00
feat: add dispatch increase_proportion
This commit is contained in:
parent
fdbfaf902d
commit
8e7111c816
3 changed files with 14 additions and 0 deletions
10
maomao.c
10
maomao.c
|
|
@ -5746,6 +5746,16 @@ void set_proportion(const Arg *arg) {
|
|||
}
|
||||
}
|
||||
|
||||
void increase_proportion(const Arg *arg) {
|
||||
if (selmon->sel) {
|
||||
unsigned int max_client_width =
|
||||
selmon->w.width - 2 * scroller_structs - gappih;
|
||||
selmon->sel->scroller_proportion = MIN(MAX(arg->f + selmon->sel->scroller_proportion,0.1),1.0);
|
||||
selmon->sel->geom.width = max_client_width * arg->f;
|
||||
arrange(selmon, false);
|
||||
}
|
||||
}
|
||||
|
||||
// 显示所有tag 或 跳转到聚焦窗口的tag
|
||||
void toggleoverview(const Arg *arg) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue