#getting absolute coordinate of window on screen

1 messages · Page 1 of 1 (latest)

neat hemlock
#

Imagine I'm creating window like this:

    let window = dioxus::desktop::WindowBuilder::new()
        .with_title(format!("{} - Editor", config.top_bar.title))
        .with_inner_size(dioxus::desktop::LogicalSize::new(screen_width, window_inner_height))
        .with_decorations(true)
        .with_resizable(true);
    let window_cfg = dioxus::desktop::Config::new().with_window(window);

    dioxus::LaunchBuilder::desktop()
        .with_cfg(window_cfg)
        .with_context(editor_state)
        .launch(App);

how do I get exact absolute coodinates of created window on screen?

leaden nova
#

the window position?

neat hemlock
#

yes. position of the window on the screen

#

I ended up with very odd solution using requests to X11, but at least it work