summaryrefslogtreecommitdiff
path: root/include/compiz.h
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-08-27 14:38:59 +0200
committerDanny Baumann <dannybaumann@web.de>2007-08-27 14:38:59 +0200
commit738ebeab78bdfc05be96a80083c0581f225a1ced (patch)
tree7726bde902b9eb2a9cc047aaa71728b1200465bc /include/compiz.h
parenta3f23a4307aeaac836e79d95212272d40614b122 (diff)
downloadcompiz-core-doc-738ebeab78bdfc05be96a80083c0581f225a1ced.tar.gz
compiz-core-doc-738ebeab78bdfc05be96a80083c0581f225a1ced.tar.bz2
Don't save last window state in CompWindow structure.
Instead, pass the last state to the state change notification function.
Diffstat (limited to 'include/compiz.h')
-rw-r--r--include/compiz.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/compiz.h b/include/compiz.h
index cf37c6e..824e610 100644
--- a/include/compiz.h
+++ b/include/compiz.h
@@ -26,7 +26,7 @@
#ifndef _COMPIZ_H
#define _COMPIZ_H
-#define ABIVERSION 20070824
+#define ABIVERSION 20070827
#include <stdio.h>
#include <sys/time.h>
@@ -1750,7 +1750,8 @@ typedef void (*WindowGrabNotifyProc) (CompWindow *window,
typedef void (*WindowUngrabNotifyProc) (CompWindow *window);
-typedef void (*WindowStateChangeNotifyProc) (CompWindow *window);
+typedef void (*WindowStateChangeNotifyProc) (CompWindow *window,
+ unsigned int lastState);
typedef void (*WindowAddNotifyProc) (CompWindow *window);
@@ -2396,7 +2397,6 @@ struct _CompWindow {
unsigned int wmType;
unsigned int type;
unsigned int state;
- unsigned int lastState;
unsigned int actions;
unsigned int protocols;
unsigned int mwmDecor;
@@ -2753,7 +2753,8 @@ void
windowUngrabNotify (CompWindow *w);
void
-windowStateChangeNotify (CompWindow *w);
+windowStateChangeNotify (CompWindow *w,
+ unsigned int lastState);
void
moveInputFocusToWindow (CompWindow *w);