Skip to content

Commit

Permalink
Disable mouse input. Fixes #110
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed Nov 20, 2024
1 parent bf77623 commit c21d34d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/server/osd_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ impl SwayosdWindow {

window.set_child(Some(&container));

// Disable mouse input
window.connect_map(|window| {
if let Some(surface) = window.surface() {
let region = gtk::cairo::Region::create();
surface.set_input_region(&region);
}
});

let update_margins = |window: &gtk::ApplicationWindow, monitor: &gdk::Monitor| {
// Monitor scale factor is not always correct
// Transform monitor height into coordinate system of window
Expand Down

0 comments on commit c21d34d

Please sign in to comment.