macos: Skip running `showAndMakeKey` when a window is minimized by user action
authorsumibi-yakitori <nekosoft360@gmail.com>
Sat, 2 Apr 2022 12:29:27 +0000 (21:29 +0900)
committersumibi-yakitori <nekosoft360@gmail.com>
Mon, 4 Apr 2022 16:06:44 +0000 (01:06 +0900)
commitd3cf7088b31965371a11d47a872fa1a4005eaa00
treee132f78f850b9f1e83bbf77b3141ba40a9fedca9
parentd1ce514260a9f4dca9a6244f04a9ad377f046149
macos: Skip running `showAndMakeKey` when a window is minimized by user action

When a window is minimized by user action, the `showAndMakeKey` method is not executed when idle. This prevents the window from being un-minimized immediately.
And allow programmatic minimization of a window by un-minimizing them in `_gdk_macos_toplevel_surface_present`

Closes #4811
gdk/macos/gdkmacosdisplay.c
gdk/macos/gdkmacostoplevelsurface.c