Unverified Commit 05a07126 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

MotionNotify handler: only call generic handler if winwid != NULL

Closes #656
parent 16b08055
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -681,7 +681,8 @@ static void feh_event_handle_MotionNotify(XEvent * ev)
	} else {
		while (XCheckTypedWindowEvent(disp, ev->xmotion.window, MotionNotify, ev));
		winwid = winwidget_get_from_window(ev->xmotion.window);
		if ((winwid != NULL) && (winwid->type == WIN_TYPE_THUMBNAIL)) {
		if (winwid != NULL) {
			if (winwid->type == WIN_TYPE_THUMBNAIL) {
				feh_thumbnail *thumbnail;
				int x, y;

@@ -693,6 +694,7 @@ static void feh_event_handle_MotionNotify(XEvent * ev)
				feh_event_handle_generic(winwid, ev->xmotion.state | Mod3Mask, NoSymbol, 0);
			}
		}
	}
	return;
}