all repos — fluxbox @ 091748bd46d27d66966d807c27a49ab172180672

custom fork of the fluxbox windowmanager

reparent
fluxgen fluxgen
commit

091748bd46d27d66966d807c27a49ab172180672

parent

859fafeecf6ca526d166a8bfb72f5a599ebb2d4b

2 files changed, 8 insertions(+), 2 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/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.hhsrc/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,