Skip to content

Commit

Permalink
more workarounds for Windows 8 /min shell flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Jul 23, 2017
1 parent 6f50d2c commit b12189e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions win32/apc.c
Expand Up @@ -1002,6 +1002,8 @@ apc_window_create( Handle self, Handle owner, Bool syncPaint, int borderIcons,
get_view_ex( self, &vprf);
ws = sys s. window;
if ( !GetWindowPlacement( HANDLE, &wp)) apiErr;
if ( wp. showCmd == SW_SHOWMINIMIZED && windowState != wsMinimized )
wp. showCmd = ( windowState == wsMaximized ) ? SW_SHOWMAXIMIZED : SW_NORMAL;
usePos = useSize = 1; // prevent using shell-position flags for recreate
icon = ( HICON) SendMessage( HANDLE, WM_GETICON, ICON_BIG, 0);
reset = true;
Expand Down

0 comments on commit b12189e

Please sign in to comment.