window: Construct the frame before the initial move_resize

This ensures sure that the initial ConfigureRequest we make is
correct.
This commit is contained in:
Jasper St. Pierre 2014-05-28 11:45:36 -04:00
parent a8df208a5c
commit 1fe5b3e7d5
2 changed files with 6 additions and 6 deletions

View File

@ -1044,9 +1044,6 @@ _meta_window_shared_new (MetaDisplay *display,
if (window->attached)
meta_window_recalc_features (window);
if (window->decorated)
meta_window_ensure_frame (window);
if (window->type == META_WINDOW_DESKTOP ||
window->type == META_WINDOW_DOCK)
{
@ -1393,9 +1390,6 @@ meta_window_unmanage (MetaWindow *window,
META_WINDOW_GET_CLASS (window)->unmanage (window);
if (window->frame)
meta_window_destroy_frame (window);
meta_prefs_remove_listener (prefs_changed_callback, window);
meta_screen_queue_check_fullscreen (window->screen);

View File

@ -518,6 +518,9 @@ meta_window_x11_manage (MetaWindow *window)
meta_window_x11_update_net_wm_type (window);
if (window->decorated)
meta_window_ensure_frame (window);
/* Now try applying saved stuff from the session */
{
const MetaWindowSessionInfo *info;
@ -647,6 +650,9 @@ meta_window_x11_unmanage (MetaWindow *window)
meta_display_ungrab_focus_window_button (window->display, window);
meta_error_trap_pop (window->display);
if (window->frame)
meta_window_destroy_frame (window);
}
static void