reparent
fluxgen fluxgen
2 files changed,
8 insertions(+),
2 deletions(-)
M
src/FbTk/FbWindow.cc
→
src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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,
M
src/FbTk/FbWindow.hh
→
src/FbTk/FbWindow.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ /// defines a cursor for this window
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,