ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

impr: Restore native macOS title bar double click gesture in borderless mode

Open mentlerd opened this issue 9 months ago • 1 comments

Problem description

In borderless mode ImHex disables the standard macOS titlebar rendering and input processing. As a result double clicking the titlebar area does not resize the application's frame like native applications do.

Implementation description

ImGui elements consume input events in the order they are drawn. As a result by "drawing" an InvisibleButton over the content area of the titlebar we can catch unprocessed clicks in the titlebar area.

Connecting this button's double clicks to the native window is then a trivial endeavour.

Screenshots

N/A

Additional things

N/A

mentlerd avatar May 19 '24 10:05 mentlerd