Skip to content

System Notifications not working for "NSWindowDidMoveNotification" #120

@swalker326

Description

@swalker326

Maybe I misunderstand the use case but when I move a window, I would expect to see a log:

pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_shell::init())
        .setup(|app| {
            #[cfg(all(desktop))]
            app.handle()
                .listen_workspace("NSWindowDidMoveNotification", |app_handle| {
                    println!("The window moved!");
                });
            Ok(())
        })
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

Are there some notifications this just doesn't work with?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions