diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 5d64728d..09c75d15 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.23 2003/08/04 12:44:43 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.24 2003/08/15 13:52:06 fluxgen Exp $ #include "FbWindow.hh" @@ -319,6 +319,11 @@ void FbWindow::unsetCursor() { XUndefineCursor(s_display, window()); } +void FbWindow::reparent(const FbWindow &parent, int x, int y) { + XReparentWindow(s_display, window(), parent.window(), x, y); + m_parent = &parent; + updateGeometry(); +} bool FbWindow::property(Atom property, long long_offset, long long_length, diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index a373e00e..d6cfea84 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.hh,v 1.21 2003/08/13 09:28:44 fluxgen Exp $ +// $Id: FbWindow.hh,v 1.22 2003/08/15 13:52:06 fluxgen Exp $ #ifndef FBTK_FBWINDOW_HH #define FBTK_FBWINDOW_HH @@ -101,6 +101,7 @@ public: void setCursor(Cursor cur); /// uses the parents cursor instead void unsetCursor(); + void reparent(const FbWindow &parent, int x, int y); bool property(Atom property, long long_offset, long long_length,