reenable new_client for wl clients, but force moveresize actions to succeed

This commit is contained in:
Mike Blumenkrantz 2015-02-11 17:00:59 -05:00
parent 5ecc0ca0a1
commit a9b56c4c28
1 changed files with 5 additions and 4 deletions

View File

@ -580,7 +580,6 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
} }
ec->netwm.ping = EINA_TRUE; ec->netwm.ping = EINA_TRUE;
ec->new_client = 0;
} }
/* get the client data */ /* get the client data */
@ -1017,6 +1016,7 @@ static void
_e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
{ {
E_Client *ec; E_Client *ec;
Eina_Bool new_client;
/* DBG("XDG_SHELL: Surface Configure: %d \t%d %d %d %d", */ /* DBG("XDG_SHELL: Surface Configure: %d \t%d %d %d %d", */
/* wl_resource_get_id(resource), x, y, w, h); */ /* wl_resource_get_id(resource), x, y, w, h); */
@ -1041,8 +1041,11 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
} }
} }
/* ensure resize succeeds */
new_client = ec->new_client;
ec->new_client = 0;
e_client_util_move_resize_without_frame(ec, x, y, w, h); e_client_util_move_resize_without_frame(ec, x, y, w, h);
ec->new_client = new_client;
/* TODO: ack configure ?? */ /* TODO: ack configure ?? */
} }
@ -1199,7 +1202,6 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
cdata->shell.unmap = _e_xdg_shell_surface_unmap; cdata->shell.unmap = _e_xdg_shell_surface_unmap;
/* set toplevel client properties */ /* set toplevel client properties */
ec->new_client = 0;
ec->argb = EINA_TRUE; ec->argb = EINA_TRUE;
ec->no_shape_cut = EINA_TRUE; ec->no_shape_cut = EINA_TRUE;
ec->borderless = !ec->internal_elm_win; ec->borderless = !ec->internal_elm_win;
@ -1309,7 +1311,6 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
cdata->shell.unmap = _e_xdg_shell_surface_unmap; cdata->shell.unmap = _e_xdg_shell_surface_unmap;
ec->override = 1; ec->override = 1;
ec->new_client = 0;
ec->argb = EINA_TRUE; ec->argb = EINA_TRUE;
ec->no_shape_cut = EINA_TRUE; ec->no_shape_cut = EINA_TRUE;
ec->borderless = !ec->internal_elm_win; ec->borderless = !ec->internal_elm_win;