mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: add restore event for minimized maximization (#35342)
This commit is contained in:
committed by
GitHub
parent
0ff6508f5b
commit
3ce35f224e
@@ -413,6 +413,8 @@ void NativeWindowViews::HandleSizeEvent(WPARAM w_param, LPARAM l_param) {
|
|||||||
// multiple times for one resize because of the SetWindowPlacement call.
|
// multiple times for one resize because of the SetWindowPlacement call.
|
||||||
if (w_param == SIZE_MAXIMIZED &&
|
if (w_param == SIZE_MAXIMIZED &&
|
||||||
last_window_state_ != ui::SHOW_STATE_MAXIMIZED) {
|
last_window_state_ != ui::SHOW_STATE_MAXIMIZED) {
|
||||||
|
if (last_window_state_ == ui::SHOW_STATE_MINIMIZED)
|
||||||
|
NotifyWindowRestore();
|
||||||
last_window_state_ = ui::SHOW_STATE_MAXIMIZED;
|
last_window_state_ = ui::SHOW_STATE_MAXIMIZED;
|
||||||
NotifyWindowMaximize();
|
NotifyWindowMaximize();
|
||||||
ResetWindowControls();
|
ResetWindowControls();
|
||||||
|
|||||||
Reference in New Issue
Block a user