Commit ee45bf9e authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Don't set the fullscreen hint on maximized windows.

parent d0e14bf7
......@@ -197,13 +197,14 @@ static void update_net_wm_states( Display *display, struct x11drv_win_data *data
if (!data->managed) return;
if (!data->mapped) return;
if (data->whole_rect.left <= 0 && data->whole_rect.right >= screen_width &&
data->whole_rect.top <= 0 && data->whole_rect.bottom >= screen_height)
new_state |= (1 << NET_WM_STATE_FULLSCREEN);
style = GetWindowLongW( data->hwnd, GWL_STYLE );
if (style & WS_MAXIMIZE) new_state |= (1 << NET_WM_STATE_MAXIMIZED);
if (!(style & WS_MAXIMIZE) &&
data->whole_rect.left <= 0 && data->whole_rect.right >= screen_width &&
data->whole_rect.top <= 0 && data->whole_rect.bottom >= screen_height)
new_state |= (1 << NET_WM_STATE_FULLSCREEN);
ex_style = GetWindowLongW( data->hwnd, GWL_EXSTYLE );
if (ex_style & WS_EX_TOPMOST)
new_state |= (1 << NET_WM_STATE_ABOVE);
......
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