From 57e86d69be32643dbca6887730f6364f7e28053c Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Thu, 29 Mar 2001 17:21:53 +0000 Subject: [PATCH] pretend to be CDE to improve interoperability with Sun's latest JDK. svn path=/trunk/kdebase/kwin/; revision=89307 --- atoms.cpp | 4 ++++ client.cpp | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/atoms.cpp b/atoms.cpp index a6b75f1bfd..add03ce15e 100644 --- a/atoms.cpp +++ b/atoms.cpp @@ -44,6 +44,10 @@ Atoms::Atoms() atoms[n] = &kde_wm_change_state; names[n++] = (char *) "_KDE_WM_CHANGE_STATE"; + + Atom fake; + atoms[n] = &fake; + names[n++] = (char *) "DT_SM_WINDOW_INFO"; XInternAtoms( qt_xdisplay(), names, n, FALSE, atoms_return ); for (int i = 0; i < n; i++ ) diff --git a/client.cpp b/client.cpp index 07c4a611c5..49df0fe2fa 100644 --- a/client.cpp +++ b/client.cpp @@ -756,7 +756,7 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial ) delete session; sendSyntheticConfigureNotify(); - + if ( showMe && !doNotShow ) { Events::raise( isTransient() ? Events::TransNew : Events::New ); if ( isMapped ) { @@ -1007,8 +1007,6 @@ bool Client::configureRequest( XConfigureRequestEvent& e ) if ( isShade() ) setShade( FALSE ); - qDebug("configureRequest %s: %d %d %d %d", caption().latin1(), e.x, e.y, e.width, e.height ); - /* // compress configure requests XEvent otherEvent; while (XCheckTypedWindowEvent (qt_xdisplay(), win, @@ -1020,11 +1018,10 @@ bool Client::configureRequest( XConfigureRequestEvent& e ) break; } } - */ bool stacking = e.value_mask & CWStackMode; int stack_mode = e.detail; - + if ( e.value_mask & CWBorderWidth ) { // first, get rid of a window border XWindowChanges wc;