Add NeoNet Yabasic networking FFI library, fix fcitx5 service and WM context menus, install yabasic-doc and mandoc
This commit is contained in:
1 parent
fb3723fab4
commit
726500085a
33 files changed
+2617
-69
No files matched your search
@@ -1393,6 +1393,8 @@ bool NeoWindow::create(const char* resName, const char* resClass,
|
||||
ch.res_class = const_cast<char*>(rClass.c_str());
|
||||
XSetClassHint(dpy, win, &ch);
|
||||
XStoreName(dpy, win, (title && title[0]) ? title : rClass.c_str());
|
||||
Atom wmDelete = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
|
||||
XSetWMProtocols(dpy, win, &wmDelete, 1);
|
||||
|
||||
pix = XCreatePixmap(dpy, win, width, height, DefaultDepth(dpy, screen));
|
||||
gc = XCreateGC(dpy, pix, 0, nullptr);
|
||||
@@ -2660,6 +2662,14 @@ int neoui_poll_event(int timeout_ms) {
|
||||
ctx->lastEventType = NEO_EV_EXPOSE;
|
||||
return NEO_EV_EXPOSE;
|
||||
}
|
||||
if (ev.type == ClientMessage) {
|
||||
Atom wmDelete = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
|
||||
if (static_cast<Atom>(ev.xclient.data.l[0]) == wmDelete) {
|
||||
ctx->lastEventType = NEO_EV_CLOSE_REQ;
|
||||
return NEO_EV_CLOSE_REQ;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (ev.type == VisibilityNotify && ctx->visible) {
|
||||
if (ev.xvisibility.state != VisibilityUnobscured) {
|
||||
XRaiseWindow(dpy, ctx->w->win);
|
||||
|
||||
Reference in new issue
Block a user