summaryrefslogtreecommitdiff
path: root/src/privatewindow.h
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-10-09 23:10:44 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-10-09 23:10:44 +0200
commit59950aaebc6c50333f2dde591a1c752cf5584c22 (patch)
tree2f32c0c549898eff35fbc60dbc5e7839c0c2d5fe /src/privatewindow.h
parent03330676853ea9f98d36d03206615158add701f2 (diff)
downloadunity-window-decorator-59950aaebc6c50333f2dde591a1c752cf5584c22.tar.gz
unity-window-decorator-59950aaebc6c50333f2dde591a1c752cf5584c22.tar.bz2
Cleanup private headers.
Diffstat (limited to 'src/privatewindow.h')
-rw-r--r--src/privatewindow.h204
1 files changed, 84 insertions, 120 deletions
diff --git a/src/privatewindow.h b/src/privatewindow.h
index 03af4d9..0897595 100644
--- a/src/privatewindow.h
+++ b/src/privatewindow.h
@@ -21,114 +21,84 @@ class PrivateWindow {
PrivateWindow (CompWindow *window);
~PrivateWindow ();
- void
- recalcNormalHints ();
+ void recalcNormalHints ();
- void
- updateFrameWindow ();
+ void updateFrameWindow ();
- void
- setWindowMatrix ();
+ void setWindowMatrix ();
- bool
- restack (Window aboveId);
+ bool restack (Window aboveId);
- bool
- initializeSyncCounter ();
+ bool initializeSyncCounter ();
- bool
- isGroupTransient (Window clientLeader);
+ bool isGroupTransient (Window clientLeader);
- static bool
- stackLayerCheck (CompWindow *w,
- Window clientLeader,
- CompWindow *below);
+ static bool stackLayerCheck (CompWindow *w,
+ Window clientLeader,
+ CompWindow *below);
- static bool
- avoidStackingRelativeTo (CompWindow *w);
+ static bool avoidStackingRelativeTo (CompWindow *w);
- static CompWindow *
- findSiblingBelow (CompWindow *w,
- bool aboveFs);
+ static CompWindow * findSiblingBelow (CompWindow *w,
+ bool aboveFs);
- static CompWindow *
- findLowestSiblingBelow (CompWindow *w);
+ static CompWindow * findLowestSiblingBelow (CompWindow *w);
- static bool
- validSiblingBelow (CompWindow *w,
- CompWindow *sibling);
+ static bool validSiblingBelow (CompWindow *w,
+ CompWindow *sibling);
- void
- saveGeometry (int mask);
+ void saveGeometry (int mask);
- int
- restoreGeometry (XWindowChanges *xwc, int mask);
+ int restoreGeometry (XWindowChanges *xwc, int mask);
- void
- reconfigureXWindow (unsigned int valueMask,
- XWindowChanges *xwc);
+ void reconfigureXWindow (unsigned int valueMask,
+ XWindowChanges *xwc);
- static bool
- stackTransients (CompWindow *w,
- CompWindow *avoid,
- XWindowChanges *xwc);
+ static bool stackTransients (CompWindow *w,
+ CompWindow *avoid,
+ XWindowChanges *xwc);
- static void
- stackAncestors (CompWindow *w, XWindowChanges *xwc);
+ static void stackAncestors (CompWindow *w, XWindowChanges *xwc);
- static bool
- isAncestorTo (CompWindow *transient,
- CompWindow *ancestor);
+ static bool isAncestorTo (CompWindow *transient,
+ CompWindow *ancestor);
- Window
- getClientLeaderOfAncestor ();
+ Window getClientLeaderOfAncestor ();
- CompWindow *
- getModalTransient ();
+ CompWindow * getModalTransient ();
- int
- addWindowSizeChanges (XWindowChanges *xwc,
- CompWindow::Geometry old);
+ int addWindowSizeChanges (XWindowChanges *xwc,
+ CompWindow::Geometry old);
- int
- addWindowStackChanges (XWindowChanges *xwc,
- CompWindow *sibling);
+ int addWindowStackChanges (XWindowChanges *xwc,
+ CompWindow *sibling);
- static CompWindow *
- findValidStackSiblingBelow (CompWindow *w,
- CompWindow *sibling);
+ static CompWindow * findValidStackSiblingBelow (CompWindow *w,
+ CompWindow *sibling);
- void
- ensureWindowVisibility ();
+ void ensureWindowVisibility ();
- void
- reveal ();
+ void reveal ();
- static void
- revealAncestors (CompWindow *w,
- CompWindow *transient);
+ static void revealAncestors (CompWindow *w,
+ CompWindow *transient);
- static void
- minimizeTransients (CompWindow *w,
- CompWindow *ancestor);
+ static void minimizeTransients (CompWindow *w,
+ CompWindow *ancestor);
- static void
- unminimizeTransients (CompWindow *w,
- CompWindow *ancestor);
+ static void unminimizeTransients (CompWindow *w,
+ CompWindow *ancestor);
- bool
- getUsageTimestamp (Time *timestamp);
+ bool getUsageTimestamp (Time *timestamp);
- bool
- isWindowFocusAllowed (Time timestamp);
+ bool isWindowFocusAllowed (Time timestamp);
- static void
- handleDamageRect (CompWindow *w,
- int x,
- int y,
- int width,
- int height);
+ static void handleDamageRect (CompWindow *w,
+ int x,
+ int y,
+ int width,
+ int height);
bool reparent ();
void unreparent ();
@@ -202,40 +172,39 @@ class PrivateWindow {
CompWindow *window;
- int refcnt;
- Window id;
- Window frame;
- Window wrapper;
- unsigned int mapNum;
- unsigned int activeNum;
- XWindowAttributes attrib;
+ int refcnt;
+ Window id;
+ Window frame;
+ Window wrapper;
+ unsigned int mapNum;
+ unsigned int activeNum;
+ XWindowAttributes attrib;
CompWindow::Geometry geometry;
CompWindow::Geometry serverGeometry;
- Window transientFor;
- Window clientLeader;
- XSizeHints sizeHints;
-
- bool inputHint;
- bool alpha;
- int width;
- int height;
- CompRegion region;
- CompRegion frameRegion;
-
- unsigned int wmType;
- unsigned int type;
- unsigned int state;
- unsigned int actions;
- unsigned int protocols;
- unsigned int mwmDecor;
- unsigned int mwmFunc;
- bool invisible;
- bool destroyed;
-
- bool managed;
-
- int destroyRefCnt;
- int unmapRefCnt;
+ Window transientFor;
+ Window clientLeader;
+ XSizeHints sizeHints;
+
+ bool inputHint;
+ bool alpha;
+ int width;
+ int height;
+ CompRegion region;
+ CompRegion frameRegion;
+
+ unsigned int wmType;
+ unsigned int type;
+ unsigned int state;
+ unsigned int actions;
+ unsigned int protocols;
+ unsigned int mwmDecor;
+ unsigned int mwmFunc;
+ bool invisible;
+ bool destroyed;
+ bool managed;
+
+ int destroyRefCnt;
+ int unmapRefCnt;
CompPoint initialViewport;
@@ -261,8 +230,7 @@ class PrivateWindow {
CompGroup *group;
unsigned int lastPong;
- bool alive;
-
+ bool alive;
CompWindowExtents input;
CompWindowExtents output;
@@ -279,20 +247,16 @@ class PrivateWindow {
int saveMask;
XSyncCounter syncCounter;
- XSyncValue syncValue;
- XSyncAlarm syncAlarm;
+ XSyncValue syncValue;
+ XSyncAlarm syncAlarm;
unsigned long syncAlarmConnection;
- CompTimer syncWaitTimer;
+ CompTimer syncWaitTimer;
- bool syncWait;
+ bool syncWait;
CompWindow::Geometry syncGeometry;
bool closeRequests;
Time lastCloseRequestTime;
-
-
-
-
};
#endif