aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-15 13:52:06 (GMT)
committerfluxgen <fluxgen>2003-08-15 13:52:06 (GMT)
commit091748bd46d27d66966d807c27a49ab172180672 (patch)
tree6187203378b5a08c8b28a1eaab2d3497b3538636 /src/FbTk
parent859fafeecf6ca526d166a8bfb72f5a599ebb2d4b (diff)
downloadfluxbox-091748bd46d27d66966d807c27a49ab172180672.zip
fluxbox-091748bd46d27d66966d807c27a49ab172180672.tar.bz2
reparent
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbWindow.cc7
-rw-r--r--src/FbTk/FbWindow.hh3
2 files changed, 8 insertions, 2 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 5d64728..09c75d1 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.cc,v 1.23 2003/08/04 12:44:43 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.24 2003/08/15 13:52:06 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25 25
@@ -319,6 +319,11 @@ void FbWindow::unsetCursor() {
319 XUndefineCursor(s_display, window()); 319 XUndefineCursor(s_display, window());
320} 320}
321 321
322void FbWindow::reparent(const FbWindow &parent, int x, int y) {
323 XReparentWindow(s_display, window(), parent.window(), x, y);
324 m_parent = &parent;
325 updateGeometry();
326}
322 327
323bool FbWindow::property(Atom property, 328bool FbWindow::property(Atom property,
324 long long_offset, long long_length, 329 long long_offset, long long_length,
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index a373e00..d6cfea8 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.hh,v 1.21 2003/08/13 09:28:44 fluxgen Exp $ 22// $Id: FbWindow.hh,v 1.22 2003/08/15 13:52:06 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -101,6 +101,7 @@ public:
101 void setCursor(Cursor cur); 101 void setCursor(Cursor cur);
102 /// uses the parents cursor instead 102 /// uses the parents cursor instead
103 void unsetCursor(); 103 void unsetCursor();
104 void reparent(const FbWindow &parent, int x, int y);
104 105
105 bool property(Atom property, 106 bool property(Atom property,
106 long long_offset, long long_length, 107 long long_offset, long long_length,