=> 851bc03a3ca740dc6879438392a25d8eb8c5a104
[1mdiff --git a/src/ui/touch.c b/src/ui/touch.c[m [1mindex 613f2c0d..884cc605 100644[m [1m--- a/src/ui/touch.c[m [1m+++ b/src/ui/touch.c[m [36m@@ -166,6 +166,7 @@[m [mstatic void dispatchMotion_Touch_(iFloat3 pos, int buttonState) {[m .type = SDL_MOUSEMOTION,[m .timestamp = SDL_GetTicks(),[m .which = SDL_TOUCH_MOUSEID,[m [32m+[m[32m .windowID = id_Window(get_Window()),[m .state = buttonState,[m .x = x_F3(pos),[m .y = y_F3(pos)[m [36m@@ -183,6 +184,7 @@[m [mstatic iBool dispatchClick_Touch_(const iTouch *d, int button) {[m .state = SDL_PRESSED,[m .timestamp = SDL_GetTicks(),[m .which = SDL_TOUCH_MOUSEID,[m [32m+[m[32m .windowID = id_Window(window),[m .x = x_F3(tapPos),[m .y = y_F3(tapPos)[m };[m [36m@@ -206,6 +208,7 @@[m [mstatic void dispatchButtonDown_Touch_(iFloat3 pos) {[m .clicks = 1,[m .state = SDL_PRESSED,[m .which = SDL_TOUCH_MOUSEID,[m [32m+[m[32m .windowID = id_Window(get_Window()),[m .button = SDL_BUTTON_LEFT,[m .x = x_F3(pos),[m .y = y_F3(pos)[m [36m@@ -220,6 +223,7 @@[m [mstatic void dispatchButtonUp_Touch_(iFloat3 pos) {[m .clicks = 1,[m .state = SDL_RELEASED,[m .which = SDL_TOUCH_MOUSEID,[m [32m+[m[32m .windowID = id_Window(get_Window()),[m .button = SDL_BUTTON_LEFT,[m .x = x_F3(pos),[m .y = y_F3(pos)[m [36m@@ -351,6 +355,7 @@[m [mstatic void update_TouchState_(void *ptr) {[m dispatchEvent_Widget(mom->affinity, (SDL_Event *) &(SDL_MouseWheelEvent){[m .type = SDL_MOUSEWHEEL,[m .which = SDL_TOUCH_MOUSEID,[m [32m+[m[32m .windowID = id_Window(window_Widget(mom->affinity)),[m .timestamp = nowTime,[m .x = pixels.x,[m .y = pixels.y,[m [36m@@ -612,11 +617,11 @@[m [miBool processEvent_Touch(const SDL_Event *ev) {[m if (touch->axis == y_TouchAxis) {[m pixels.x = 0;[m }[m [31m-// printf("%p (%s) py: %i wy: %f acc: %f edge: %d\n",[m [31m-// touch->affinity,[m [31m-// class_Widget(touch->affinity)->name,[m [31m-// pixels.y, y_F3(amount), y_F3(touch->accum),[m [31m-// touch->edge);[m [32m+[m[32m printf("%p (%s) py: %i wy: %f acc: %f edge: %d\n",[m [32m+[m[32m touch->affinity,[m [32m+[m[32m class_Widget(touch->affinity)->name,[m [32m+[m[32m pixels.y, y_F3(amount), y_F3(touch->accum),[m [32m+[m[32m touch->edge);[m if (pixels.x || pixels.y) {[m //setFocus_Widget(NULL);[m dispatchMotion_Touch_(touch->startPos /*pos[0]*/, 0);[m [36m@@ -624,6 +629,7 @@[m [miBool processEvent_Touch(const SDL_Event *ev) {[m dispatchEvent_Widget(touch->affinity, (SDL_Event *) &(SDL_MouseWheelEvent){[m .type = SDL_MOUSEWHEEL,[m .which = SDL_TOUCH_MOUSEID,[m [32m+[m[32m .windowID = id_Window(window_Widget(touch->affinity)),[m .timestamp = SDL_GetTicks(),[m .x = pixels.x,[m .y = pixels.y,[m [1mdiff --git a/src/ui/widget.c b/src/ui/widget.c[m [1mindex 910c31a9..4b8b1dc5 100644[m [1m--- a/src/ui/widget.c[m [1m+++ b/src/ui/widget.c[m [36m@@ -1030,7 +1030,7 @@[m [miBool dispatchEvent_Widget(iWidget *d, const SDL_Event *ev) {[m }[m }[m else if (ev->type == SDL_MOUSEMOTION &&[m [31m- ev->motion.windowID == SDL_GetWindowID(window_Widget(d)->win) &&[m [32m+[m[32m ev->motion.windowID == id_Window(window_Widget(d)) &&[m (!window_Widget(d)->hover || hasParent_Widget(d, window_Widget(d)->hover)) &&[m flags_Widget(d) & hover_WidgetFlag && ~flags_Widget(d) & hidden_WidgetFlag &&[m ~flags_Widget(d) & disabled_WidgetFlag) {[m [36m@@ -1075,7 +1075,7 @@[m [miBool dispatchEvent_Widget(iWidget *d, const SDL_Event *ev) {[m fflush(stdout);[m }[m #endif[m [31m-#if 0[m [32m+[m[32m#if 1[m if (ev->type == SDL_MOUSEWHEEL) {[m printf("[%p] %s:'%s' ate the wheel\n",[m child, class_Widget(child)->name,[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).