summaryrefslogtreecommitdiff
path: root/src/privatewindow.h
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-08-27 15:08:10 +0200
committerDennis Kasprzyk <onestone@compiz-fusion.org>2008-08-27 15:08:10 +0200
commitac82488c022665492713d633d832480063f67067 (patch)
treeab9e230bc8ad1055fe080506dfc784fc088c43cb /src/privatewindow.h
parentb92393878f81ec008ac7f383f63afe648bc5f80f (diff)
downloadunity-window-decorator-ac82488c022665492713d633d832480063f67067.tar.gz
unity-window-decorator-ac82488c022665492713d633d832480063f67067.tar.bz2
Moved composite handling and opengl painting into separate plugins.
Diffstat (limited to 'src/privatewindow.h')
-rw-r--r--src/privatewindow.h43
1 files changed, 9 insertions, 34 deletions
diff --git a/src/privatewindow.h b/src/privatewindow.h
index 12da68a..1111f4e 100644
--- a/src/privatewindow.h
+++ b/src/privatewindow.h
@@ -4,11 +4,9 @@
#include <compiz-core.h>
#include <compwindow.h>
#include <comppoint.h>
-#include <comptexture.h>
#define WINDOW_INVISIBLE(w) \
((w)->attrib.map_state != IsViewable || \
- (!(w)->damaged) || \
(w)->attrib.x + (w)->width + (w)->output.right <= 0 || \
(w)->attrib.y + (w)->height + (w)->output.bottom <= 0 || \
(w)->attrib.x - (w)->output.left >= (int) (w)->screen->size().width () || \
@@ -152,16 +150,13 @@ class PrivateWindow {
Window transientFor;
Window clientLeader;
XSizeHints sizeHints;
- Pixmap pixmap;
- CompTexture texture;
- CompTexture::Matrix matrix;
- Damage damage;
+
bool inputHint;
bool alpha;
- GLint width;
- GLint height;
+ int width;
+ int height;
Region region;
- Region clip;
+
unsigned int wmType;
unsigned int type;
unsigned int state;
@@ -171,11 +166,9 @@ class PrivateWindow {
unsigned int mwmFunc;
bool invisible;
bool destroyed;
- bool damaged;
- bool redirected;
+
bool managed;
- bool bindFailed;
- bool overlayWindow;
+
int destroyRefCnt;
int unmapRefCnt;
@@ -205,14 +198,6 @@ class PrivateWindow {
unsigned int lastPong;
bool alive;
- GLushort opacity;
- GLushort brightness;
- GLushort saturation;
-
- CompWindowPaintAttrib paint;
- CompWindowPaintAttrib lastPaint;
-
- unsigned int lastMask;
CompWindowExtents input;
CompWindowExtents output;
@@ -240,19 +225,9 @@ class PrivateWindow {
bool closeRequests;
Time lastCloseRequestTime;
- XRectangle *damageRects;
- int sizeDamage;
- int nDamage;
-
- GLfloat *vertices;
- int vertexSize;
- int vertexStride;
- GLushort *indices;
- int indexSize;
- int vCount;
- int texUnits;
- int texCoordSize;
- int indexCount;
+
+
+
};
#endif