=> cd3d98aff300fca672da79e15ac255ab3a800e5c
[1mdiff --git a/src/ui/window.c b/src/ui/window.c[m [1mindex 99430a05..22cf1fb0 100644[m [1m--- a/src/ui/window.c[m [1m+++ b/src/ui/window.c[m [36m@@ -854,6 +854,19 @@[m [miBool processEvent_Window(iWindow *d, const SDL_Event *ev) {[m const iInt2 pos = coord_Window(d, event.button.x, event.button.y);[m event.button.x = pos.x;[m event.button.y = pos.y;[m [32m+[m[32m if (event.type == SDL_MOUSEBUTTONDOWN) {[m [32m+[m[32m /* Button clicks will change keyroot. */[m [32m+[m[32m if (numRoots_Window(d) > 1) {[m [32m+[m[32m const iInt2 click = init_I2(event.button.x, event.button.y);[m [32m+[m[32m iForIndices(i, d->roots) {[m [32m+[m[32m iRoot *root = d->roots[i];[m [32m+[m[32m if (root != d->keyRoot && contains_Rect(rect_Root(root), click)) {[m [32m+[m[32m setKeyRoot_Window(d, root);[m [32m+[m[32m break;[m [32m+[m[32m }[m [32m+[m[32m }[m [32m+[m[32m }[m [32m+[m[32m }[m }[m const iWidget *oldHover = d->hover;[m iBool wasUsed = iFalse;[m [36m@@ -885,7 +898,9 @@[m [miBool processEvent_Window(iWindow *d, const SDL_Event *ev) {[m wasUsed = dispatchEvent_Window(d, &paste);[m }[m if (event.type == SDL_MOUSEBUTTONDOWN && event.button.button == SDL_BUTTON_RIGHT) {[m [31m- postContextClick_Window(d, &event.button);[m [32m+[m[32m if (postContextClick_Window(d, &event.button)) {[m [32m+[m[32m wasUsed = iTrue;[m [32m+[m[32m }[m }[m }[m if (isMetricsChange_UserEvent(&event)) {[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).