remove: unnecessary comments to fit comment style in rest of repo for possible pr in the future
This commit is contained in:
@@ -239,8 +239,8 @@ bind=CTRL+ALT,Left,resizewin,-50,+0
|
||||
bind=CTRL+ALT,Right,resizewin,+50,+0
|
||||
|
||||
# dual-scroller split adjustment (increase/decrease top row height)
|
||||
# bind=SUPER+SHIFT,Equal,adjust_dual_scroller_split,0.05
|
||||
# bind=SUPER+SHIFT,Minus,adjust_dual_scroller_split,-0.05
|
||||
bind=SUPER+SHIFT,Equal,adjust_dual_scroller_split,0.05
|
||||
bind=SUPER+SHIFT,Minus,adjust_dual_scroller_split,-0.05
|
||||
|
||||
# Mouse Button Bindings
|
||||
# NONE mode key only work in ov mode
|
||||
|
||||
@@ -122,24 +122,20 @@ int focusdir(const Arg *arg) {
|
||||
}
|
||||
|
||||
int togglerow(const Arg *arg) {
|
||||
// Toggle between top and bottom row in dual-scroller layout
|
||||
if (!selmon || !selmon->sel || !is_row_layout(selmon))
|
||||
return 0;
|
||||
|
||||
Client *c = selmon->sel;
|
||||
|
||||
// Only toggle for tiled windows
|
||||
if (c->isfloating || !ISSCROLLTILED(c) || !VISIBLEON(c, selmon))
|
||||
return 0;
|
||||
|
||||
// Toggle the row
|
||||
if (c->dual_scroller_row == 0) {
|
||||
c->dual_scroller_row = 1;
|
||||
} else {
|
||||
c->dual_scroller_row = 0;
|
||||
}
|
||||
|
||||
// Trigger a relayout
|
||||
arrange(selmon, false);
|
||||
return 0;
|
||||
}
|
||||
@@ -332,14 +328,11 @@ int adjust_dual_scroller_split(const Arg *arg) {
|
||||
if (!arg || !selmon)
|
||||
return 0;
|
||||
|
||||
// Check if we're in a dual-scroller layout
|
||||
if (!is_row_layout(selmon))
|
||||
return 0;
|
||||
|
||||
// Calculate new ratio: if arg->f < 1.0, treat as relative adjustment, otherwise as absolute value
|
||||
new_ratio = arg->f < 1.0 ? dual_scroller_default_split_ratio + arg->f : arg->f - 1.0;
|
||||
|
||||
// Clamp the ratio between 0.1 and 0.9
|
||||
if (new_ratio < 0.1 || new_ratio > 0.9)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user