My dmenu build
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

17 líneas
496 B

  1. /* See LICENSE file for copyright and license details. */
  2. #include <X11/Xlib.h>
  3. #include "draw.h"
  4. void
  5. setupdraw(DC *dc, Window w) {
  6. XWindowAttributes wa;
  7. XGetWindowAttributes(dc->dpy, w, &wa);
  8. dc->drawable = XCreatePixmap(dc->dpy, w, wa.width, wa.height,
  9. DefaultDepth(dc->dpy, DefaultScreen(dc->dpy)));
  10. dc->gc = XCreateGC(dc->dpy, w, 0, NULL);
  11. XSetLineAttributes(dc->dpy, dc->gc, 1, LineSolid, CapButt, JoinMiter);
  12. if(!dc->font.set)
  13. XSetFont(dc->dpy, dc->gc, dc->font.xfont->fid);
  14. }