changeset 1114:d5bcb4123441

fix xembed stuff with reparenting WMs
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Tue, 19 May 2009 16:08:41 +0200
parents 6bdfa650b547
children 2629d209be3d
files src/xembed.cc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xembed.cc	Tue May 19 12:49:32 2009 +0000
+++ b/src/xembed.cc	Tue May 19 16:08:41 2009 +0200
@@ -1,5 +1,6 @@
 #include <fltk/Window.h>
 #include <fltk/x11.h>
+#include <fltk/run.h>
 #include <fltk/x.h>
 
 #include "xembed.hh"
@@ -11,10 +12,12 @@
 #if USE_X11
    fltk::Widget *r = resizable();
    // WORKAROUND: Avoid jumping windows with tiling window managers (e.g. dwm)
+   resize(1, 1);
    resizable(NULL);
    fltk::Window::show();
    fltk::Widget::hide();
    resizable(r);
+   fltk::flush();
    XReparentWindow (fltk::xdisplay, fltk::xid(this), xid, 0, 0);
 #endif
 }