Prevent minimizing Dialog Windows on macOS
This works around an issue with some embedded plugin windows not being properly restored when the window is restored after being minimized. It also prevents zooming (full-screen) display of dialog windows. Also recent macOS allows to maximize Windows even if they are not supposed to be resizable (also causing issues with some plugins).
This commit is contained in:
parent
7c311761c2
commit
2cdfdc9212
@ -2365,6 +2365,10 @@ gdk_window_set_type_hint (GdkWindow *window,
|
||||
[impl->toplevel setHasShadow: window_type_hint_to_shadow (hint)];
|
||||
[impl->toplevel setLevel: window_type_hint_to_level (hint)];
|
||||
[impl->toplevel setHidesOnDeactivate: window_type_hint_to_hides_on_deactivate (hint)];
|
||||
|
||||
bool allow_minimize_and_maximize = window_type_hint_to_level (hint) != NSFloatingWindowLevel;
|
||||
[[impl->toplevel standardWindowButton:NSWindowMiniaturizeButton] setEnabled:allow_minimize_and_maximize];
|
||||
[[impl->toplevel standardWindowButton:NSWindowZoomButton] setEnabled:allow_minimize_and_maximize];
|
||||
}
|
||||
|
||||
GdkWindowTypeHint
|
||||
|
Loading…
Reference in New Issue
Block a user