forked from Mirrors/wine-wine
winex11: Leave fullscreen state alone when minimizing.
parent
df8a1ce609
commit
5e5a9d6f93
|
@ -974,6 +974,8 @@ void update_net_wm_states( struct x11drv_win_data *data )
|
||||||
if (data->whole_window == root_window) return;
|
if (data->whole_window == root_window) return;
|
||||||
|
|
||||||
style = GetWindowLongW( data->hwnd, GWL_STYLE );
|
style = GetWindowLongW( data->hwnd, GWL_STYLE );
|
||||||
|
if (style & WS_MINIMIZE)
|
||||||
|
new_state |= data->net_wm_state & (1 << NET_WM_STATE_FULLSCREEN);
|
||||||
if (is_window_rect_fullscreen( &data->whole_rect ))
|
if (is_window_rect_fullscreen( &data->whole_rect ))
|
||||||
{
|
{
|
||||||
if ((style & WS_MAXIMIZE) && (style & WS_CAPTION) == WS_CAPTION)
|
if ((style & WS_MAXIMIZE) && (style & WS_CAPTION) == WS_CAPTION)
|
||||||
|
|
Loading…
Reference in New Issue