forked from enlightenment/enlightenment
wl-desktop-shell: Avoid runtime ERR noise for something that is not
really an error. When we call shell_surface_parent_set with a NULL parent resource, then there is No reason to try and find the pixmap window of a NULL parent. Avoid that function call and just set the appropriate properties and get out. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
3b649534c9
commit
814b50f7e6
|
@ -11,8 +11,13 @@ _e_shell_surface_parent_set(E_Client *ec, struct wl_resource *parent_resource)
|
|||
E_Client *pc;
|
||||
uint64_t pwin = 0;
|
||||
|
||||
if (!parent_resource) pp = NULL;
|
||||
/* get pixmap from parent */
|
||||
if (!parent_resource)
|
||||
{
|
||||
ec->icccm.fetch.transient_for = EINA_FALSE;
|
||||
ec->icccm.transient_for = 0;
|
||||
ec->parent = NULL;
|
||||
return;
|
||||
}
|
||||
else if (!(pp = wl_resource_get_user_data(parent_resource)))
|
||||
{
|
||||
ERR("Could not get parent resource pixmap");
|
||||
|
|
Loading…
Reference in New Issue