X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=70dcb0d8217ccdaf6ef756bba4db2485c663e29a;hb=91c40c6b5e4af7f2a04f3fd9ec32a0a94c22ab27;hp=fce80284ee958c8b58ad5df6984e54ef771e795b;hpb=3f50fa6a8e6d1b73761c4344986b3a3c37043e94;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index fce8028..70dcb0d 100644 --- 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 #include @@ -84,6 +84,10 @@ static const char *cvstag = "$scrotwm$"; #include #include +#ifdef __OSX__ +#include +#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;