forked from enlightenment/enlightenment
do not accidentally place unplaced clients during wl *shell configure
This commit is contained in:
parent
69936f74a5
commit
047f08a994
|
@ -370,7 +370,10 @@ _wl_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
e_client_util_move_resize_without_frame(ec, x, y, w, h);
|
if (ec->placed || ec->parent)
|
||||||
|
e_client_util_move_resize_without_frame(ec, x, y, w, h);
|
||||||
|
else
|
||||||
|
e_client_util_resize_without_frame(ec, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -552,7 +552,10 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
e_client_util_move_resize_without_frame(ec, x, y, w, h);
|
if (ec->placed || ec->parent)
|
||||||
|
e_client_util_move_resize_without_frame(ec, x, y, w, h);
|
||||||
|
else
|
||||||
|
e_client_util_resize_without_frame(ec, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -186,8 +186,11 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
|
||||||
"No Client For Shell Surface");
|
"No Client For Shell Surface");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!e_object_is_del(E_OBJECT(ec)))
|
if (e_object_is_del(E_OBJECT(ec))) return;
|
||||||
|
if (ec->placed)
|
||||||
e_client_util_move_resize_without_frame(ec, x, y, w, h);
|
e_client_util_move_resize_without_frame(ec, x, y, w, h);
|
||||||
|
else
|
||||||
|
e_client_util_resize_without_frame(ec, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue