diff --git a/src/core/window.c b/src/core/window.c index 08e413c49..e51de1b94 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -5080,18 +5080,20 @@ meta_window_move_frame (MetaWindow *window, { int x = root_x_nw; int y = root_y_nw; - MetaFrameBorders borders; - meta_frame_calc_borders (window->frame, &borders); - - /* root_x_nw and root_y_nw correspond to where the top of - * the visible frame should be. Offset by the distance between - * the origin of the window and the origin of the enclosing - * window decorations. - */ - x += window->frame->child_x - borders.invisible.left; - y += window->frame->child_y - borders.invisible.top; + if (window->frame) + { + MetaFrameBorders borders; + meta_frame_calc_borders (window->frame, &borders); + /* root_x_nw and root_y_nw correspond to where the top of + * the visible frame should be. Offset by the distance between + * the origin of the window and the origin of the enclosing + * window decorations. + */ + x += window->frame->child_x - borders.invisible.left; + y += window->frame->child_y - borders.invisible.top; + } meta_window_move (window, user_op, x, y); }