Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to stop drawing of miniquad mouse pointer when mouse point to egui GUI area? #47

Open
skydig opened this issue Sep 3, 2022 · 1 comment

Comments

@skydig
Copy link

skydig commented Sep 3, 2022

I found two kinds of mouse pointer overlaped and blink one after another when the mouse point to for example, textarea, conner of one egui window on ubuntu linux.
how to remove miniquad pointer when operate in area of egui?

@skydig
Copy link
Author

skydig commented Sep 3, 2022

everything is ok when i remove following line from the file lib.rs
if cursor_icon == egui::CursorIcon::None {
mq_ctx.show_mouse(false);
} else {
///////////////////remove this line mq_ctx.show_mouse(true);

        let mq_cursor_icon = to_mq_cursor_icon(cursor_icon);
        let mq_cursor_icon = mq_cursor_icon.unwrap_or(mq::CursorIcon::Default);
        mq_ctx.set_mouse_cursor(mq_cursor_icon);
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant