There is a header that defines the stucts and constants to support GNUstep
specific things, and it is already used somewhere else in WINGs, so instead
of duplicating locally the stuff we re-use the header, it makes code easier
to maintain.

Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>
---
 WINGs/wwindow.c | 28 ++--------------------------
 1 file changed, 2 insertions(+), 26 deletions(-)

diff --git a/WINGs/wwindow.c b/WINGs/wwindow.c
index 23badf5..503611d 100644
--- a/WINGs/wwindow.c
+++ b/WINGs/wwindow.c
@@ -3,6 +3,8 @@
 
 #include "WINGsP.h"
 
+#include "GNUstep.h"
+
 #include <X11/Xatom.h>
 
 typedef struct W_Window {
@@ -46,32 +48,6 @@ typedef struct W_Window {
        } flags;
 } _Window;
 
-typedef struct {
-       CARD32 flags;
-       CARD32 window_style;
-       CARD32 window_level;
-       CARD32 reserved;
-       Pixmap miniaturize_pixmap;      /* pixmap for miniaturize button */
-       Pixmap close_pixmap;    /* pixmap for close button */
-       Pixmap miniaturize_mask;        /* miniaturize pixmap mask */
-       Pixmap close_mask;      /* close pixmap mask */
-       CARD32 extra_flags;
-} GNUstepWMAttributes;
-
-#define GSWindowStyleAttr      (1<<0)
-#define GSWindowLevelAttr      (1<<1)
-#define GSMiniaturizePixmapAttr        (1<<3)
-#define GSClosePixmapAttr      (1<<4)
-#define GSMiniaturizeMaskAttr  (1<<5)
-#define GSCloseMaskAttr                (1<<6)
-#define GSExtraFlagsAttr       (1<<7)
-
-/* extra flags */
-#define GSDocumentEditedFlag   (1<<0)
-#define GSNoApplicationIconFlag        (1<<5)
-
-#define WMFHideOtherApplications       10
-#define WMFHideApplication             12
 
 static void willResizeWindow(W_ViewDelegate *, WMView *, unsigned *, unsigned 
*);
 
-- 
2.1.3


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to