From 12237ed0db778fecc92e699fd2a190a0c1b3ac79 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 10 Aug 2004 13:36:07 +0000 Subject: removed reparent and added debugmsg --- src/WinClient.cc | 33 ++++++++++++++++++++++++--------- src/WinClient.hh | 3 +-- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/WinClient.cc b/src/WinClient.cc index fe06245..a31094e 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: WinClient.cc,v 1.40 2004/06/07 11:46:04 rathnor Exp $ +// $Id: WinClient.cc,v 1.41 2004/08/10 13:36:07 fluxgen Exp $ #include "WinClient.hh" @@ -157,7 +157,10 @@ bool WinClient::acceptsFocus() const { bool WinClient::sendFocus() { if (!send_focus_message) return false; - +#ifdef DEBUG + cerr<<"WinClient::"<<__FUNCTION__<<": this = "<display(); // setup focus msg XEvent ce; @@ -199,10 +202,6 @@ void WinClient::sendClose(bool forceful) { } } -void WinClient::reparent(Window win, int x, int y) { - XReparentWindow(FbTk::App::instance()->display(), window(), win, x, y); -} - bool WinClient::getAttrib(XWindowAttributes &attr) const { return XGetWindowAttributes(FbTk::App::instance()->display(), window(), &attr); } @@ -248,8 +247,12 @@ void WinClient::updateWMClassHint() { } void WinClient::updateTransientInfo() { +#ifdef DEBUG + cerr<<__FUNCTION__<<": m_win = "<transientList().remove(this); @@ -258,13 +261,21 @@ void WinClient::updateTransientInfo() { transient_for = 0; Display *disp = FbTk::App::instance()->display(); // determine if this is a transient window - Window win; - if (!XGetTransientForHint(disp, window(), &win)) + Window win = 0; + if (!XGetTransientForHint(disp, window(), &win)) { +#ifdef DEBUG + cerr<<__FUNCTION__<<": window() = 0x"<screen().rootWindow() == win) { // transient for root window... = transient for group @@ -275,6 +286,10 @@ void WinClient::updateTransientInfo() { transient_for = Fluxbox::instance()->searchWindow(win); +#ifdef DEBUG + cerr<<__FUNCTION__<<": transient_for window = 0x"<