ev->window, ev->mode, ev->detail, ev->root, ev->subwindow,
ev->same_screen, ev->focus, ev->state);
+ if (ev->mode != NotifyNormal) {
+ DNPRINTF(SWM_D_EVENT, "ignoring enternotify: generated by cursor grab.\n");
+ return;
+ }
+
switch (focus_mode) {
case SWM_FOCUS_DEFAULT:
break;
struct ws_win *win;
XPropertyEvent *ev = &e->xproperty;
- DNPRINTF(SWM_D_EVENT, "propertynotify: window: %lu\n",
- ev->window);
+ DNPRINTF(SWM_D_EVENT, "propertynotify: window: %lu atom:%s\n",
+ ev->window, XGetAtomName(display, ev->atom));
win = find_window(ev->window);
if (win == NULL)