>From 76561259959f81a4aefa45c5636bd13819e0bfe2 Mon Sep 17 00:00:00 2001 From: Timo Savola Date: Tue, 23 Jan 2007 11:56:29 +0200 Subject: [PATCH] xembed-xsetoffset Do not attempt to move embedded frames. --- src/xterm.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 8764ada..db6a353 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8991,6 +8991,7 @@ x_make_frame_visible (f) if we get to x_make_frame_visible a second time before the window gets really visible. */ if (! FRAME_ICONIFIED_P (f) + && ! FRAME_X_EMBEDDED_P (f) && ! f->output_data.x->asked_for_visible) x_set_offset (f, f->left_pos, f->top_pos, 0); @@ -9055,7 +9056,9 @@ x_make_frame_visible (f) because the window manager may choose the position and we don't want to override it. */ - if (! FRAME_VISIBLE_P (f) && ! FRAME_ICONIFIED_P (f) + if (! FRAME_VISIBLE_P (f) + && ! FRAME_ICONIFIED_P (f) + && ! FRAME_X_EMBEDDED_P (f) && f->win_gravity == NorthWestGravity && previously_visible) { @@ -9300,7 +9303,9 @@ x_iconify_frame (f) /* Make sure the X server knows where the window should be positioned, in case the user deiconifies with the window manager. */ - if (! FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P (f)) + if (! FRAME_VISIBLE_P (f) + && ! FRAME_ICONIFIED_P (f) + && ! FRAME_X_EMBEDDED_P (f)) x_set_offset (f, f->left_pos, f->top_pos, 0); /* Since we don't know which revision of X we're running, we'll use both -- 1.5.2