summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2010-02-13 00:23:00 +0100
committerDennis kasprzyk <onestone@compiz-fusion.org>2010-02-13 00:24:29 +0100
commite35b688e9fc614b69dee22e35d283d8af3306a0d (patch)
tree99cc96800217eddc0d1fce542aa9188d4b03ccc4 /kde
parent5a25ec8ae0e1c0c7b72fe3b4de2f10a4e8f5a300 (diff)
downloadzcomp-e35b688e9fc614b69dee22e35d283d8af3306a0d.tar.gz
zcomp-e35b688e9fc614b69dee22e35d283d8af3306a0d.tar.bz2
Fake enlightment desktop property to make qt ignore the composite window during frame calculations.
Diffstat (limited to 'kde')
-rw-r--r--kde/window-decorator-kde4/decorator.cpp4
-rw-r--r--kde/window-decorator-kde4/utils.cpp2
-rw-r--r--kde/window-decorator-kde4/utils.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/kde/window-decorator-kde4/decorator.cpp b/kde/window-decorator-kde4/decorator.cpp
index 72e48d8..b522132 100644
--- a/kde/window-decorator-kde4/decorator.cpp
+++ b/kde/window-decorator-kde4/decorator.cpp
@@ -164,6 +164,10 @@ KWD::Decorator::Decorator () :
CopyFromParent,
CopyFromParent,
CWOverrideRedirect, &attr);
+
+ long data = 1;
+ XChangeProperty (QX11Info::display(), mCompositeWindow, Atoms::enlightmentDesktop,
+ XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &data, 1);
XCompositeRedirectSubwindows (QX11Info::display (), mCompositeWindow,
CompositeRedirectManual);
diff --git a/kde/window-decorator-kde4/utils.cpp b/kde/window-decorator-kde4/utils.cpp
index d9ed12e..9d39c46 100644
--- a/kde/window-decorator-kde4/utils.cpp
+++ b/kde/window-decorator-kde4/utils.cpp
@@ -52,6 +52,7 @@ namespace KWD
Atom toolkitActionWindowMenuAtom;
Atom toolkitActionForceQuitDialogAtom;
Atom compizWindowBlurDecor;
+ Atom enlightmentDesktop;
}
}
@@ -208,4 +209,5 @@ KWD::Atoms::init (void)
false);
compizWindowBlurDecor =
XInternAtom (xdisplay, DECOR_BLUR_ATOM_NAME, false);
+ enlightmentDesktop = XInternAtom (xdisplay, "ENLIGHTENMENT_DESKTOP", false);
}
diff --git a/kde/window-decorator-kde4/utils.h b/kde/window-decorator-kde4/utils.h
index e9143cc..08d02e7 100644
--- a/kde/window-decorator-kde4/utils.h
+++ b/kde/window-decorator-kde4/utils.h
@@ -54,6 +54,7 @@ namespace KWD
extern Atom toolkitActionWindowMenuAtom;
extern Atom toolkitActionForceQuitDialogAtom;
extern Atom compizWindowBlurDecor;
+ extern Atom enlightmentDesktop;
void init (void);
}