From 0dfd7966b4a200d580e955b0fac9e1a0c3f1cea4 Mon Sep 17 00:00:00 2001 From: rasmusq Date: Thu, 27 Nov 2025 19:32:09 +0100 Subject: [PATCH] remove: unnecessary comments to fit comment style in rest of repo for possible pr in the future --- config.conf | 4 ++-- src/dispatch/bind_define.h | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/config.conf b/config.conf index e72ee09..4211d58 100644 --- a/config.conf +++ b/config.conf @@ -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 diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index f0032e6..f835fa6 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -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;