Skip to content

Commit

Permalink
fix transparancy on x11
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaqo committed May 17, 2024
1 parent 073800d commit aa90e45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/app/ctxmenu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ pub fn build_ctxmenu(window: &MpvSubsWindow) -> ContextMenu {
Some(&window)
);

let res =color_chooser.run();
let res = color_chooser.run();

if res != gtk::ResponseType::Ok {
color_chooser.close();
Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ fn main() {
application.connect_activate(|app| {
let window = build_window(app);

window.set_visual(
GtkWindowExt::screen(&window)
.unwrap()
.rgba_visual().as_ref()
);
window.show_all();
load_settings(&window);

Expand Down

0 comments on commit aa90e45

Please sign in to comment.