tao icon indicating copy to clipboard operation
tao copied to clipboard

windows window set 40*40 not work

Open Neo110 opened this issue 2 years ago • 5 comments

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

Neo110 avatar Jul 12 '23 08:07 Neo110

I investigated this before, see https://github.com/tauri-apps/tauri/issues/6792#issuecomment-1523840871 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.

amrbashir avatar Jul 12 '23 11:07 amrbashir

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 avatar Jul 14 '23 00:07 Neo110

i get it ,use winit . image

Neo110 avatar Jul 17 '23 06:07 Neo110

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.

JakubGluszek avatar Jul 23 '23 10:07 JakubGluszek

i get it ,use winit . image

Can you tell me how to do it?

Borber avatar Jan 01 '24 16:01 Borber