Commit 4a9c8399 authored by Alexandre Julliard's avatar Alexandre Julliard

Allow owner to be the desktop window.

parent ae8a4019
......@@ -337,7 +337,8 @@ DECL_HANDLER(create_window)
if (!(parent = get_window( req->parent ))) return;
if (req->owner && !(owner = get_window( req->owner ))) return;
if (owner && owner->parent != parent)
if (owner == top_window) owner = NULL;
else if (owner && owner->parent != parent)
{
/* owner must be a sibling of the new window */
set_error( STATUS_ACCESS_DENIED );
......
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