diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 7bcc80979351..0a360a387342 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -5487,10 +5487,12 @@ nsresult nsWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent, // We need realized mShell at NativeMoveResize(). gtk_widget_realize(mShell); - // With popup windows, we want to control their position, so don't - // wait for the window manager to place them (which wouldn't - // happen with override-redirect windows anyway). - NativeMoveResize(/* move */ true, /* resize */ false); + if (GdkIsX11Display()) { + // With popup windows, we want to control their position, so don't + // wait for the window manager to place them (which wouldn't + // happen with override-redirect windows anyway). + NativeMoveResize(/* move */ true, /* resize */ false); + } } else { // must be eWindowType_toplevel mGtkWindowRoleName = "Toplevel"; SetDefaultIcon(); @@ -5923,6 +5925,7 @@ void nsWindow::NativeMoveResize(bool aMoved, bool aResized) { NativeShow(false); } if (aMoved) { + LOG((" moving to %d x %d", topLeft.x, topLeft.y)); gtk_window_move(GTK_WINDOW(mShell), topLeft.x, topLeft.y); } return;