Skip to content

Commit

Permalink
Fix for floating pane not working with rotate_clockwise and
Browse files Browse the repository at this point in the history
rotate_counter_clockwise
  • Loading branch information
e82eric committed Sep 25, 2024
1 parent 5ad7fe6 commit b2e2b79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions mux/src/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1116,10 +1116,6 @@ impl TabInner {
}
}

if let Some(float_pane) = self.get_float_pane() {
panes.push(float_pane);
}

let active_idx = self.active;
let zoomed_id = self.zoomed.as_ref().map(|p| p.pane_id());
let root_size = self.size;
Expand Down
12 changes: 6 additions & 6 deletions wezterm-gui/src/termwindow/render/paint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ impl crate::TermWindow {
mux::Mux::get().record_focus_for_current_identity(pos.pane.pane_id());
}
}
if pos.is_float {
self.paint_pane(&pos, &mut float_layers).context("paint_pane")?;
self.paint_float_border(pos, &mut float_layers).context("paint_float_border")?;
} else {
self.paint_pane(&pos, &mut layers).context("paint_pane")?;
}
self.paint_pane(&pos, &mut layers).context("paint_pane")?;
}

if let Some(float_pane) = self.get_float_pane_to_render(){
self.paint_pane(&float_pane, &mut float_layers).context("paint_pane")?;
self.paint_float_border(float_pane, &mut float_layers).context("paint_float_border")?;
}

if let Some(pane) = self.get_active_pane_or_overlay() {
Expand Down

0 comments on commit b2e2b79

Please sign in to comment.