Build system: CMake is back, managing xft optional.
This commit is contained in:
@@ -90,6 +90,7 @@ init_font(void)
|
||||
font.fontset = XCreateFontSet(dpy, "fixed", &misschar, &d, &defstring);
|
||||
}
|
||||
|
||||
XExtentsOfFontSet(font.fontset);
|
||||
XFontsOfFontSet(font.fontset, &xfs, &names);
|
||||
|
||||
font.as = xfs[0]->max_bounds.ascent;
|
||||
|
||||
@@ -537,7 +537,9 @@ typedef struct
|
||||
typedef struct
|
||||
{
|
||||
int as, de, width, height;
|
||||
#ifdef HAVE_XFT
|
||||
XftFont *font;
|
||||
#endif /* HAVE_XFT */
|
||||
XFontSet fontset;
|
||||
} FontStruct;
|
||||
typedef struct
|
||||
|
||||
14
src/wmfs.h
14
src/wmfs.h
@@ -1,3 +1,4 @@
|
||||
|
||||
/*
|
||||
* wmfs.h
|
||||
* Copyright © 2008, 2009 Martin Duquesnoy <xorg62@gmail.com>
|
||||
@@ -57,13 +58,12 @@
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/cursorfont.h>
|
||||
#include <X11/Xft/Xft.h>
|
||||
|
||||
/* Local headers */
|
||||
#include "parse.h"
|
||||
#include "structs.h"
|
||||
|
||||
/* Optional dependencies */
|
||||
#ifdef HAVE_XFT
|
||||
#include <X11/Xft/Xft.h>
|
||||
#endif /* HAVE_XFT */
|
||||
|
||||
#ifdef HAVE_XINERAMA
|
||||
#include <X11/extensions/Xinerama.h>
|
||||
#endif /* HAVE_XINERAMA */
|
||||
@@ -76,6 +76,10 @@
|
||||
#include <Imlib2.h>
|
||||
#endif /* HAVE_IMLIB */
|
||||
|
||||
/* Local headers */
|
||||
#include "parse.h"
|
||||
#include "structs.h"
|
||||
|
||||
/* MACRO */
|
||||
#define ButtonMask (ButtonPressMask | ButtonReleaseMask | ButtonMotionMask)
|
||||
#define MouseMask (ButtonMask | PointerMotionMask)
|
||||
|
||||
Reference in New Issue
Block a user