Skip to content

Commit

Permalink
Try to improve floating pane defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
e82eric committed Oct 16, 2024
1 parent e489871 commit 426f0e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
16 changes: 8 additions & 8 deletions config/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,14 +649,14 @@ impl Default for WindowFrameConfig {
impl Default for FloatingPaneBorderConfig {
fn default() -> Self {
Self {
left_width: default_zero_pixel(),
right_width: default_zero_pixel(),
top_height: default_zero_pixel(),
bottom_height: default_zero_pixel(),
left_color: None,
right_color: None,
top_color: None,
bottom_color: None,
left_width: Dimension::Pixels(3.),
right_width: Dimension::Pixels(3.),
top_height: Dimension::Pixels(3.),
bottom_height: Dimension::Pixels(3.),
left_color: Some(default_active_titlebar_bg()),
right_color: Some(default_active_titlebar_bg()),
top_color: Some(default_active_titlebar_bg()),
bottom_color: Some(default_active_titlebar_bg()),
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions wezterm-client/src/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -841,9 +841,6 @@ impl Domain for ClientDomain {
Ok(true)
}

/// Forward the request to the remote; we need to translate the local ids
/// to those that match the remote for the request, resync the changed
/// structure, and then translate the results back to local
async fn move_floating_pane_to_split(
&self,
pane_id: PaneId,
Expand All @@ -856,6 +853,7 @@ impl Domain for ClientDomain {
let local_pane = Mux::get()
.get_pane(pane_id)
.ok_or_else(|| anyhow!("pane_id {} is invalid", pane_id))?;

let pane = local_pane
.downcast_ref::<ClientPane>()
.ok_or_else(|| anyhow!("pane_id {} is not a ClientPane", pane_id))?;
Expand Down

0 comments on commit 426f0e2

Please sign in to comment.