Introduction
Introduction Statistics Contact Development Disclaimer Help
Remove old Xrm/Xt stuff. - sam - An updated version of the sam text editor.
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 902d26d8da45bf284764512d7b05bd948c7f73ca
parent 653513dc73b32dde0e8a08f2fb49d59e2415aabf
Author: Rob King <[email protected]>
Date: Wed, 21 Sep 2016 16:41:46 -0500
Remove old Xrm/Xt stuff.
Diffstat:
libXg/xtbinit.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/libXg/xtbinit.c b/libXg/xtbinit.c
@@ -136,15 +136,10 @@ static XtActionsRec wmpactions[] = {
};
#endif
- /* too many X options */
-static XrmOptionDescRec optable[] = {
-};
-
void
xtbinit(Errfunc f, char *class, int *pargc, char **argv, char **fallbacks)
{
int n;
- unsigned int depth;
Arg args[20];
char *p;
int compose;
@@ -172,7 +167,7 @@ xtbinit(Errfunc f, char *class, int *pargc, char **argv, ch…
XtSetArg(args[n], XtNiconName, XtNewString(name)); n++;
_toplevel = XtAppInitialize(&app, class,
- optable, sizeof(optable)/sizeof(optable[0]),
+ NULL, 0,
pargc, argv, fallbacks, args, n);
@@ -203,7 +198,6 @@ xtbinit(Errfunc f, char *class, int *pargc, char **argv, ch…
_bgpixel = _bgpixels[0];
n = 0;
- XtSetArg(args[n], XtNdepth, &depth); n++;
XtSetArg(args[n], XtNcomposeMod, &compose); n++;
XtGetValues(widg, args, n);
@@ -238,12 +232,10 @@ xtbinit(Errfunc f, char *class, int *pargc, char **argv, …
XftColorAllocValue(_dpy, DefaultVisual(_dpy, DefaultScreen(_dpy)), Default…
screen.id = (int) XtWindow(widg);
- screen.ldepth = ilog2(depth);
+ screen.ldepth = ilog2(DefaultDepth(_dpy, DefaultScreen(_dpy)));
screen.flag = SCR;
if(_fgpixel != 0)
screen.flag |= BL1;
- if(depth == 1)
- screen.flag |= DP1;
/* leave screen rect at all zeros until reshaped() sets it */
while(!exposed) {
XFlush(_dpy);
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.