From bbd42b3a20a72862a87e42e57ce29ef1f07e208c Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Mon, 8 Dec 2014 22:42:33 +0100 Subject: [PATCH] WINGs: reuse GNUstep header instead of duplicating stuff in wwindow.c 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 --- WINGs/wwindow.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/WINGs/wwindow.c b/WINGs/wwindow.c index 23badf5b..503611d0 100644 --- a/WINGs/wwindow.c +++ b/WINGs/wwindow.c @@ -3,6 +3,8 @@ #include "WINGsP.h" +#include "GNUstep.h" + #include 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 *);