do not accidentally place unplaced clients during wl *shell configure

devs/discomfitor/debug
Mike Blumenkrantz 6 years ago
parent 69936f74a5
commit 047f08a994
  1. 5
      src/modules/wl_desktop_shell/wl_shell.c
  2. 5
      src/modules/wl_desktop_shell/xdg5.c
  3. 5
      src/modules/wl_desktop_shell/xdg6.c

@ -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

@ -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

@ -186,8 +186,11 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
"No Client For Shell Surface");
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);
else
e_client_util_resize_without_frame(ec, w, h);
}
static void

Loading…
Cancel
Save