gui/window: keep the window frame across starts, take the first click
- Options.FrameFile: the window's position, size and maximized state in a small JSON file, read at New (a frame on no connected screen is ignored, the window opens centered), written shortly after every move or resize and at Destroy. macOS: NSWindow frame (the normal frame under a zoomed one), checked against NSScreen visible frames; Windows: Get/SetWindowPlacement, checked with MonitorFromRect. - macOS: the web view is a WKWebView subclass that accepts the first mouse click, so a page in an inactive window reacts to it instead of the click only activating the window (yanks' start dialog). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c16b871db5
commit
31dbc347e8
9 files changed
+325
-13
No files matched your search
+2
-1
@@ -2,7 +2,8 @@
|
||||
#define YETANO_WINDOW_DARWIN_H
|
||||
#include <stdint.h>
|
||||
|
||||
void *yt_create(uintptr_t goHandle, const char *title, int width, int height, int debug, const char *scheme);
|
||||
void *yt_create(uintptr_t goHandle, const char *title, int width, int height, int debug, const char *scheme,
|
||||
int hasFrame, int fx, int fy, int fw, int fh, int zoomed);
|
||||
void yt_add_script(void *h, const char *js);
|
||||
void yt_navigate(void *h, const char *url);
|
||||
void yt_eval(void *h, const char *js);
|
||||
|
||||
Reference in new issue
Block a user