plan.9: ОС Plan 9

Ответ на: jv3dUGjHhLZFTwtVgAsY
От: hugeping (ping,1) 07.11.21 12:14 UTC
Кому: hugeping
Тема: Re: drawterm на 9front
Патч на drawterm, который включает fullscreen на X11
====
diff --git a/gui-x11/x11.c b/gui-x11/x11.c
index 74412f9..9dda3a5 100644
--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c

@@ -190,6 +190,13 @@ flushmemscreen(Rectangle r) XFlush(xdisplay); } +void fullscreen(Display* dpy, Window win) +{ + Atom atoms[2] = { XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False), None }; + XChangeProperty(dpy, win, XInternAtom(dpy, "_NET_WM_STATE", False), + XA_ATOM, 32, PropModeReplace, atoms, 1); +} + void screeninit(void) { @@ -370,7 +377,8 @@ screeninit(void) 1); /* int nelements */ XFlush(xkmcon); } - + fullscreen(xdisplay, xdrawable); + /* * put the window on the screen */ ====
[17 / 17]