Launcher appears on correct display, Action centre can be triggered by control command

This commit is contained in:
jmb05
2026-11-02 19:55:43 +01:00
parent f46c2408a5
commit 541ce5ccb2
5 changed files with 33 additions and 15 deletions

View File

@@ -67,9 +67,8 @@ impl RunMenu {
window.set_child(Some(&v_box));
let display = Display::default().expect("Couldn't get display");
let monitor = display
.monitors()
.item(HyprlandComms::current_monitor() as u32)
let monitor = HyprlandComms::cursor_monitor()
.and_then(|id| display.monitors().item(id as u32))
.expect("Couldn't get monitor")
.downcast::<Monitor>()
.ok();