Add Webarchy ultrawide browser, DNS UI, WLAN/st fixes, and media/CLI packages
- Port Webarchy GTK3/WebKit2GTK browser for 2160x1080 with flush-right vertical tab bar, DPI-scaled .Xresources SIGUSR1 theming, single-instance FIFO, and GPU crash CPU fallback (src/webarchy/webarchy.cpp, geminux-webarchy) - Cross-compile pure-C gdk-pixbuf 2.42.12 (geminux-gdk-pixbuf) and compile rootfs GSettings schemas so webkit2gtk-4.1 and gst-plugins-good install with zero Rust ELFs - Add zero-Rust geminux-mpv (mpv v0.40.0, FFmpeg n7.1.5, libplacebo, gst-libav 1.28.9) plus python3, py3-pip, mpg123, yt-dlp (quickjs), gnupg, gpg, pass, and pinentry-curses - Fix MT6797 WLAN peer deauth and CCMP EAPOL GTK rekey (patch 0007), set wifi.powersave = 2, pin active WLAN connections in geminux-net, and add the DNS tab with geminux-dnsctl - Restore st filled/hollow cursor focus across screenlock and libgemui grabs via dwm, libgemui, and st updates - Update README.md, MANUAL.md, ARCHITECTURE.md, POWER-OPTIMIZATION.md, check-rebuild.sh, and host Python tests
This commit is contained in:
1 parent
c12ed68d19
commit
e01806f3c8
82 files changed
+5499
-117
No files matched your search
@@ -66,6 +66,8 @@ struct gemui_app {
|
||||
char toast_msg[256];
|
||||
uint64_t toast_until_ms;
|
||||
bool ptr_down;
|
||||
Window prev_focus_win;
|
||||
int prev_focus_revert;
|
||||
};
|
||||
|
||||
static int g_sig_pipe[2] = {-1, -1};
|
||||
@@ -302,6 +304,33 @@ static void gemui_ensure_backbuf(gemui_app_t *app) {
|
||||
app->bh = app->h;
|
||||
}
|
||||
|
||||
static int gemui_ignore_xerror(Display *dpy, XErrorEvent *ev) {
|
||||
(void)dpy;
|
||||
(void)ev;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void gemui_save_prev_focus(gemui_app_t *app) {
|
||||
if (!app || app->prev_focus_win != None) return;
|
||||
Window cur = None;
|
||||
int rev = RevertToPointerRoot;
|
||||
XGetInputFocus(app->dpy, &cur, &rev);
|
||||
if (cur != None && cur != app->win) {
|
||||
app->prev_focus_win = cur;
|
||||
app->prev_focus_revert = rev;
|
||||
}
|
||||
}
|
||||
|
||||
static void gemui_restore_prev_focus(gemui_app_t *app) {
|
||||
if (!app || app->prev_focus_win == None || app->prev_focus_win == app->win) return;
|
||||
XSync(app->dpy, False);
|
||||
int (*old_handler)(Display *, XErrorEvent *) = XSetErrorHandler(gemui_ignore_xerror);
|
||||
XSetInputFocus(app->dpy, app->prev_focus_win, app->prev_focus_revert, CurrentTime);
|
||||
XSync(app->dpy, False);
|
||||
XSetErrorHandler(old_handler);
|
||||
app->prev_focus_win = None;
|
||||
}
|
||||
|
||||
gemui_app_t *gemui_create(const char *res_name, const char *title,
|
||||
int w, int h, bool fullscreen_override) {
|
||||
setlocale(LC_CTYPE, "");
|
||||
@@ -386,6 +415,7 @@ gemui_app_t *gemui_create(const char *res_name, const char *title,
|
||||
XMapRaised(dpy, app->win);
|
||||
if (fullscreen_override) {
|
||||
XMoveResizeWindow(dpy, app->win, 0, 0, (unsigned int)sw, (unsigned int)sh);
|
||||
gemui_save_prev_focus(app);
|
||||
XSetInputFocus(dpy, app->win, RevertToPointerRoot, CurrentTime);
|
||||
}
|
||||
XFlush(dpy);
|
||||
@@ -395,6 +425,7 @@ gemui_app_t *gemui_create(const char *res_name, const char *title,
|
||||
|
||||
void gemui_destroy(gemui_app_t *app) {
|
||||
if (!app) return;
|
||||
gemui_restore_prev_focus(app);
|
||||
if (app->xic) XDestroyIC(app->xic);
|
||||
if (app->xim) XCloseIM(app->xim);
|
||||
if (app->backbuf) XFreePixmap(app->dpy, app->backbuf);
|
||||
@@ -492,6 +523,7 @@ bool gemui_grab_input(gemui_app_t *app) {
|
||||
XGrabPointer(app->dpy, app->win, True,
|
||||
ButtonPressMask | ButtonReleaseMask | PointerMotionMask,
|
||||
GrabModeAsync, GrabModeAsync, app->win, None, CurrentTime);
|
||||
gemui_save_prev_focus(app);
|
||||
XSetInputFocus(app->dpy, app->win, RevertToPointerRoot, CurrentTime);
|
||||
XFlush(app->dpy);
|
||||
return ok_kbd;
|
||||
@@ -501,6 +533,7 @@ void gemui_ungrab_input(gemui_app_t *app) {
|
||||
if (!app) return;
|
||||
XUngrabKeyboard(app->dpy, CurrentTime);
|
||||
XUngrabPointer(app->dpy, CurrentTime);
|
||||
gemui_restore_prev_focus(app);
|
||||
XFlush(app->dpy);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user