Commit ce409c01 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

winex11.drv: Don't change net_wm maximized state for minimized windows.

In Win32, minimized windows are generally not considered maximized, but restoring a minimized window that had been maximized returns it to the maximized state. In X11, at least with some window managers (I tested metacity and gnome shell), the maximized state is meaningful for minimized windows. If we remove the net_wm maximized state from windows we minimize, they will still be unmaximized when the WM restores them.
parent 91a23ce3
......@@ -976,7 +976,7 @@ void update_net_wm_states( struct x11drv_win_data *data )
style = GetWindowLongW( data->hwnd, GWL_STYLE );
if (style & WS_MINIMIZE)
new_state |= data->net_wm_state & (1 << NET_WM_STATE_FULLSCREEN);
new_state |= data->net_wm_state & ((1 << NET_WM_STATE_FULLSCREEN)|(1 << NET_WM_STATE_MAXIMIZED));
if (is_window_rect_fullscreen( &data->whole_rect ))
{
if ((style & WS_MAXIMIZE) && (style & WS_CAPTION) == WS_CAPTION)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment