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

windows window set 40*40 not work #765

Open
Neo110 opened this issue Jul 12, 2023 · 5 comments
Open

windows window set 40*40 not work #765

Neo110 opened this issue Jul 12, 2023 · 5 comments

Comments

@Neo110
Copy link

Neo110 commented Jul 12, 2023

windows window set 4040 not work
i need window size si 40
40 but in windows not work ,how to get this window? help me .
image

@amrbashir
Copy link
Member

I investigated this before, see tauri-apps/tauri#6792 (comment) and I couldn't find a good way to have windows smaller than this.

I'd suggest make your window transparent and only draw what you need and call https://docs.rs/tao/latest/tao/window/struct.Window.html#method.set_ignore_cursor_events when the mouse is in the transparent area.

@Neo110
Copy link
Author

Neo110 commented Jul 14, 2023

I investigated this before, see tauri-apps/tauri#6792 (comment) and I couldn't find a good way to have windows smaller than this.

I'd suggest make your window transparent and only draw what you need and call https://docs.rs/tao/latest/tao/window/struct.Window.html#method.set_ignore_cursor_events when the mouse is in the transparent area.

Do you have a code example, please?

@Neo110
Copy link
Author

Neo110 commented Jul 17, 2023

i get it ,use winit .
image

@JakubGluszek
Copy link

I investigated this before, see tauri-apps/tauri#6792 (comment) and I couldn't find a good way to have windows smaller than this.

I'd suggest make your window transparent and only draw what you need and call https://docs.rs/tao/latest/tao/window/struct.Window.html#method.set_ignore_cursor_events when the mouse is in the transparent area.

I don't see any way of turning the cursor events back on tho.

@Borber
Copy link

Borber commented Jan 1, 2024

i get it ,use winit . image

Can you tell me how to do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📬Proposal
Development

No branches or pull requests

4 participants