aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server/src/output
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-02-04 11:59:21 +0100
committerGitHub <noreply@github.com>2026-02-04 11:59:21 +0100
commit690a1e4506854c1e7637cf4c27f75e39b923972d (patch)
treeecedd56de5971abe1db82d83402815e52e9df3b2 /zellij-server/src/output
parentfix(layout): Correctly handle relative layout paths from CLI (#4664) (diff)
downloadsl0ppij-690a1e4506854c1e7637cf4c27f75e39b923972d.tar.gz
sl0ppij-690a1e4506854c1e7637cf4c27f75e39b923972d.tar.xz
sl0ppij-690a1e4506854c1e7637cf4c27f75e39b923972d.zip
Allow resizing panes with the mouse (#4678)
* initial implementation * improve edge detection * fix up/down resize increment bug * temporarily disable alt-mouse grouping * fix inverting strategies and simplify edge detection * resize of floating -> ctrl click, resize of tiled -> (ctrl)click * fix old functionality and tests * refactor and fixes * refactor mouse click handling * move mouse click handling to separate module * resize scroll up/down with scroll wheel * tests for scroll resize * implement hover help * fix occlusion bug * allow disabling with config * fix focus pinned pane on frame * use strategy invert resize directly rather than function parameter * remove annoying log message * cleanups and formatting * add pr
Diffstat (limited to 'zellij-server/src/output')
-rw-r--r--zellij-server/src/output/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/zellij-server/src/output/mod.rs b/zellij-server/src/output/mod.rs
index 5ca283a7..6d9c2185 100644
--- a/zellij-server/src/output/mod.rs
+++ b/zellij-server/src/output/mod.rs
@@ -717,7 +717,7 @@ impl FloatingPanesStack {
// pane covers chunk completely
drop(c_chunk.terminal_characters.drain(..));
return Ok(None);
- } else if pane_right_edge > c_chunk_left_side
+ } else if pane_right_edge >= c_chunk_left_side
&& pane_right_edge < c_chunk_right_side
&& pane_left_edge <= c_chunk_left_side
{
@@ -726,8 +726,8 @@ impl FloatingPanesStack {
drop(covered_part);
c_chunk.x = pane_right_edge + 1;
return Ok(None);
- } else if pane_left_edge > c_chunk_left_side
- && pane_left_edge < c_chunk_right_side
+ } else if pane_left_edge >= c_chunk_left_side
+ && pane_left_edge >= c_chunk_left_side
&& pane_right_edge >= c_chunk_right_side
{
// pane covers chunk partially to the right