Launcher appears on correct display, Action centre can be triggered by control command
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user