Commit 81c4b412 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Set size hints to 1x1 for zero-sized windows.

parent 8b84d640
......@@ -1018,6 +1018,8 @@ static void set_size_hints( Display *display, struct x11drv_win_data *data, DWOR
{
size_hints->max_width = data->whole_rect.right - data->whole_rect.left;
size_hints->max_height = data->whole_rect.bottom - data->whole_rect.top;
if (size_hints->max_width <= 0 ||size_hints->max_height <= 0)
size_hints->max_width = size_hints->max_height = 1;
size_hints->min_width = size_hints->max_width;
size_hints->min_height = size_hints->max_height;
size_hints->flags |= PMinSize | PMaxSize;
......
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