Skip to content

Commit

Permalink
Don't apply nvim-background class on macos, no background breaks windows
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
jacobmischka authored and Lyude committed Dec 25, 2022
1 parent bef2ffa commit c22cf59
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@ impl Ui {
settings.init();

let window = ApplicationWindow::new(app);
window.add_css_class("nvim-background");

// For some reason, having a transparent window breaks window behavior on macOS.
// See #46
if cfg!(not(target_os = "macos")) {
window.add_css_class("nvim-background");
}

let main = Paned::new(Orientation::Horizontal);

Expand Down

0 comments on commit c22cf59

Please sign in to comment.