=> ba6d544b1237aea6901cf5b4f6562db9eb0f46c4
[1mdiff --git a/src/app.c b/src/app.c[m [1mindex c1c1da27..d7392423 100644[m [1m--- a/src/app.c[m [1m+++ b/src/app.c[m [36m@@ -762,7 +762,7 @@[m [mstatic void init_App_(iApp *d, int argc, char **argv) {[m mulfv_I2(&d->initialWindowRect.size, desktopDPI_Win32());[m #endif[m #if defined (iPlatformLinux)[m [31m- /* Scale by the primary (?) monitor DPI. */ [m [32m+[m[32m /* Scale by the primary (?) monitor DPI. */[m if (isRunningUnderWindowSystem_App()) {[m float vdpi;[m SDL_GetDisplayDPI(0, NULL, NULL, &vdpi);[m [36m@@ -1061,7 +1061,7 @@[m [mvoid trimMemory_App(void) {[m init_ObjectListIterator(&i, docs);[m }[m }[m [31m- iRelease(docs); [m [32m+[m[32m iRelease(docs);[m }[m [m iLocalDef iBool isWaitingAllowed_App_(iApp *d) {[m [36m@@ -1249,7 +1249,7 @@[m [mvoid processEvents_App(enum iAppEventMode eventMode) {[m }[m else if (ev.type == SDL_MOUSEMOTION) {[m if (~ev.motion.state & SDL_BUTTON(SDL_BUTTON_LEFT)) {[m [31m- continue; /* only when pressing a button */ [m [32m+[m[32m continue; /* only when pressing a button */[m }[m const float xf = (d->window->pixelRatio * ev.motion.x) / (float) d->window->size.x;[m const float yf = (d->window->pixelRatio * ev.motion.y) / (float) d->window->size.y;[m [36m@@ -1263,7 +1263,7 @@[m [mvoid processEvents_App(enum iAppEventMode eventMode) {[m ev.tfinger.fingerId = 0x1234;[m ev.tfinger.pressure = 1.0f;[m ev.tfinger.timestamp = SDL_GetTicks();[m [31m- ev.tfinger.touchId = SDL_TOUCH_MOUSEID; [m [32m+[m[32m ev.tfinger.touchId = SDL_TOUCH_MOUSEID;[m }[m }[m #endif[m [36m@@ -1307,7 +1307,7 @@[m [mvoid processEvents_App(enum iAppEventMode eventMode) {[m if (root) {[m arrange_Widget(root->widget);[m }[m [31m- } [m [32m+[m[32m }[m }[m }[m if (!wasUsed) {[m [36m@@ -1374,11 +1374,11 @@[m [mstatic int resizeWatcher_(void *user, SDL_Event *event) {[m if (event->type == SDL_WINDOWEVENT && event->window.event == SDL_WINDOWEVENT_SIZE_CHANGED) {[m const SDL_WindowEvent *winev = &event->window;[m #if defined (iPlatformMsys)[m [31m- resetFonts_Text(); {[m [32m+[m[32m resetFonts_Text(text_Window(d->window)); {[m SDL_Event u = { .type = SDL_USEREVENT };[m u.user.code = command_UserEventCode;[m u.user.data1 = strdup("theme.changed auto:1");[m [31m- dispatchEvent_Window(d->window, &u);[m [32m+[m[32m dispatchEvent_Window(as_Window(d->window), &u);[m }[m #endif[m drawWhileResizing_MainWindow(d->window, winev->data1, winev->data2);[m [36m@@ -1420,7 +1420,7 @@[m [mvoid refresh_App(void) {[m #endif[m const iPtrArray *windows = listWindows_App_(d);[m /* Destroy pending widgets. */ {[m [31m- iConstForEach(PtrArray, j, windows) { [m [32m+[m[32m iConstForEach(PtrArray, j, windows) {[m iWindow *win = j.ptr;[m setCurrent_Window(win);[m iForIndices(i, win->roots) {[m [36m@@ -1449,7 +1449,7 @@[m [mvoid refresh_App(void) {[m break;[m default:[m draw_Window(win);[m [31m- break; [m [32m+[m[32m break;[m }[m }[m }[m [36m@@ -1807,7 +1807,7 @@[m [mstatic iBool handlePrefsCommands_(iWidget *d, const char *cmd) {[m updateFontButton_(findChild_Widget(d, "prefs.headingfont"), arg_Command(cmd));[m return iFalse;[m }[m [31m- else if (startsWith_CStr(cmd, "input.ended id:prefs.linespacing")) { [m [32m+[m[32m else if (startsWith_CStr(cmd, "input.ended id:prefs.linespacing")) {[m /* Apply line spacing changes immediately. */[m const iInputWidget *lineSpacing = findWidget_App("prefs.linespacing");[m postCommandf_App("linespacing.set arg:%f", toFloat_String(text_InputWidget(lineSpacing)));[m [36m@@ -1895,7 +1895,7 @@[m [mstatic iBool handleIdentityCreationCommands_(iWidget *dlg, const char *cmd) {[m }[m setFlags_Widget(pointer_Command(cmd), disabled_WidgetFlag, iTrue);[m arrange_Widget(dlg);[m [31m- refresh_Widget(dlg); [m [32m+[m[32m refresh_Widget(dlg);[m return iTrue;[m }[m if (equal_Command(cmd, "ident.scope")) {[m [36m@@ -2027,7 +2027,7 @@[m [mconst iString *searchQueryUrl_App(const iString *queryStringUnescaped) {[m static void resetFonts_App_(iApp *d) {[m iConstForEach(PtrArray, win, listWindows_App_(d)) {[m resetFonts_Text(text_Window(win.ptr));[m [31m- } [m [32m+[m[32m }[m }[m [m iBool handleCommand_App(const char *cmd) {[m [36m@@ -2875,7 +2875,7 @@[m [miBool handleCommand_App(const char *cmd) {[m write_Ipc(argLabel_Command(cmd, "pid"),[m collectNewFormat_String("%s\n", cstr_String(url_DocumentWidget(document_App()))),[m response_IpcWrite);[m [31m- return iTrue; [m [32m+[m[32m return iTrue;[m }[m else if (equal_Command(cmd, "ipc.signal")) {[m if (argLabel_Command(cmd, "raise")) {[m [1mdiff --git a/src/ui/window.c b/src/ui/window.c[m [1mindex e9a34ace..27ef2bc3 100644[m [1m--- a/src/ui/window.c[m [1m+++ b/src/ui/window.c[m [36m@@ -240,7 +240,7 @@[m [mstatic void updateSize_MainWindow_(iMainWindow *d, iBool notifyAlways) {[m }[m [m void drawWhileResizing_MainWindow(iMainWindow *d, int w, int h) {[m [31m- draw_MainWindow(d); [m [32m+[m[32m draw_MainWindow(d);[m }[m [m static float pixelRatio_Window_(const iWindow *d) {[m [36m@@ -438,7 +438,7 @@[m [mvoid init_Window(iWindow *d, enum iWindowType type, iRect rect, uint32_t flags)[m if (left_Rect(rect) >= 0 || top_Rect(rect) >= 0) {[m SDL_SetWindowPosition(d->win, left_Rect(rect), top_Rect(rect));[m }[m [31m- SDL_GetRendererOutputSize(d->render, &d->size.x, &d->size.y); [m [32m+[m[32m SDL_GetRendererOutputSize(d->render, &d->size.x, &d->size.y);[m drawBlank_Window_(d);[m d->pixelRatio = pixelRatio_Window_(d); /* point/pixel conversion */[m d->displayScale = displayScale_Window_(d);[m [36m@@ -472,7 +472,7 @@[m [mvoid deinit_Window(iWindow *d) {[m if (d->cursors[i]) {[m SDL_FreeCursor(d->cursors[i]);[m }[m [31m- } [m [32m+[m[32m }[m }[m [m void init_MainWindow(iMainWindow *d, iRect rect) {[m [36m@@ -522,7 +522,7 @@[m [mvoid init_MainWindow(iMainWindow *d, iRect rect) {[m #endif[m }[m #if defined(iPlatformMsys)[m [31m- SDL_SetWindowMinimumSize(d->win, minSize.x * d->base.displayScale, minSize.y * d->base.displayScale);[m [32m+[m[32m SDL_SetWindowMinimumSize(d->base.win, minSize.x * d->base.displayScale, minSize.y * d->base.displayScale);[m useExecutableIconResource_SDLWindow(d->base.win);[m #endif[m #if defined (iPlatformLinux)[m [36m@@ -538,7 +538,7 @@[m [mvoid init_MainWindow(iMainWindow *d, iRect rect) {[m setupWindow_iOS(as_Window(d));[m #endif[m setCurrent_Text(d->base.text);[m [31m- SDL_GetRendererOutputSize(d->base.render, &d->base.size.x, &d->base.size.y); [m [32m+[m[32m SDL_GetRendererOutputSize(d->base.render, &d->base.size.x, &d->base.size.y);[m setupUserInterface_MainWindow(d);[m postCommand_App("~bindings.changed"); /* update from bindings */[m /* Load the border shadow texture. */ {[m [36m@@ -800,7 +800,7 @@[m [mstatic iBool handleWindowEvent_MainWindow_(iMainWindow *d, const SDL_WindowEvent[m // printf("normal rect set (move)\n"); fflush(stdout);[m iInt2 border = zero_I2();[m #if !defined(iPlatformApple)[m [31m- SDL_GetWindowBordersSize(d->win, &border.y, &border.x, NULL, NULL);[m [32m+[m[32m SDL_GetWindowBordersSize(d->base.win, &border.y, &border.x, NULL, NULL);[m #endif[m d->place.normalRect.pos =[m max_I2(zero_I2(), sub_I2(d->place.normalRect.pos, border));[m [36m@@ -1055,7 +1055,7 @@[m [miBool dispatchEvent_Window(iWindow *d, const SDL_Event *ev) {[m if (!isEscapeKeypress_(ev)) {[m /* Key events go only to the root with keyboard focus, with the exception[m of Escape that will also affect the entire window. */[m [31m- continue; [m [32m+[m[32m continue;[m }[m }[m if (ev->type == SDL_MOUSEWHEEL && !contains_Rect(rect_Root(root),[m [36m@@ -1126,7 +1126,7 @@[m [mvoid draw_Window(iWindow *d) {[m #if !defined (NDEBUG)[m draw_Text(defaultBold_FontId, safeRect_Root(root).pos, red_ColorId, "%d", drawCount_);[m drawCount_ = 0;[m [31m-#endif [m [32m+[m[32m#endif[m }[m // drawRectThickness_Paint(&p, (iRect){ zero_I2(), sub_I2(d->size, one_I2()) }, gap_UI / 4, uiSeparator_ColorId);[m setCurrent_Root(NULL);[m [36m@@ -1587,6 +1587,9 @@[m [miWindow *newPopup_Window(iInt2 screenPos, iWidget *rootWidget) {[m new_Window(popup_WindowType,[m (iRect){ screenPos, divf_I2(rootWidget->rect.size, get_Window()->pixelRatio) },[m SDL_WINDOW_ALWAYS_ON_TOP |[m [32m+[m[32m#if !defined (iPlatformAppleDesktop)[m [32m+[m[32m SDL_WINDOW_BORDERLESS |[m [32m+[m[32m#endif[m SDL_WINDOW_POPUP_MENU |[m SDL_WINDOW_SKIP_TASKBAR);[m #if defined (iPlatformAppleDesktop)[m
text/gemini; charset=utf-8
This content has been proxied by September (3851b).