JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Add cygwin.
[spectrwm.git] / scrotwm.c
index fce8028..70dcb0d 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -52,7 +52,7 @@
 
 static const char      *cvstag = "$scrotwm$";
 
-#define        SWM_VERSION     "0.9.19"
+#define        SWM_VERSION     "0.9.22"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -84,6 +84,10 @@ static const char    *cvstag = "$scrotwm$";
 #include <X11/Xutil.h>
 #include <X11/extensions/Xrandr.h>
 
+#ifdef __OSX__
+#include <osx.h>
+#endif
+
 #if RANDR_MAJOR < 1
 #  error XRandR versions less than 1.0 are not supported
 #endif
@@ -3982,10 +3986,12 @@ enternotify(XEvent *e)
 {
        XCrossingEvent          *ev = &e->xcrossing;
        XEvent                  cne;
-       struct ws_win           *win, *w;
+       struct ws_win           *win;
+#if 0
+       struct ws_win           *w;
        Window                  focus_return;
        int                     revert_to_return;
-
+#endif
        DNPRINTF(SWM_D_FOCUS, "enternotify: window: %lu mode %d detail %d root "
            "%lu subwindow %lu same_screen %d focus %d state %d\n",
            ev->window, ev->mode, ev->detail, ev->root, ev->subwindow,
@@ -4076,7 +4082,7 @@ focusme:
         * if we have more enternotifies let them handle it in due time
         */
        if (XCheckTypedEvent(display, EnterNotify, &cne) == True) {
-               DNPRINT(SWM_D_EVENT,
+               DNPRINTF(SWM_D_EVENT,
                    "ignoring enternotify: got more enternotify\n");
                XPutBackEvent(display, &cne);
                return;