emilk / egui

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
https://www.egui.rs/
Apache License 2.0
21.86k stars 1.58k forks source link

Fix dragging of `custom_window_frame` example on Windows #4656

Closed rustbasic closed 3 months ago

rustbasic commented 3 months ago

Fix dragging of custom_window_frame on Windows (re-edited)

emilk commented 3 months ago

Have you tested this on X11?

rustbasic commented 3 months ago

Have you tested this on X11?

no. Tested on Windows. Since there doesn't seem to be any particular problem with has_focus(), I don't expect any problems elsewhere.

ardocrat commented 3 months ago

Tested on Linux, seems like we have a problem with app window resize as with dragging, egui is not receiving event on mouse button release. I need to click somewhere so drag_stopped event will be called. Also related to https://github.com/emilk/egui/issues/2548