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.
This commit is contained in:
parent
91a23ce364
commit
ce409c01d5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue