Skip to content

Commit

Permalink
replace X11 headers with libs/fvwm_x11.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeandmore authored and ThomasAdam committed Dec 1, 2020
1 parent 59748fd commit 0bb15b2
Show file tree
Hide file tree
Showing 89 changed files with 153 additions and 265 deletions.
4 changes: 2 additions & 2 deletions fvwm/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <X11/keysym.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/fvwmsignal.h"
#include "libs/setpgrp.h"
Expand Down Expand Up @@ -271,7 +271,7 @@ static void obsolete_imagepaths( const char* pre_path )
*
*/
static char *ReadTitleButton(
char *s, TitleButton *tb, Boolean append, int button)
char *s, TitleButton *tb, Bool append, int button)
{
char *end = NULL;
char *spec;
Expand Down
4 changes: 1 addition & 3 deletions fvwm/colorset.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@

#include "config.h"

#include <stdio.h>
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/Parse.h"
#include "libs/PictureBase.h"
Expand Down
2 changes: 1 addition & 1 deletion fvwm/colorset.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define FVWM_COLORSET_H

/* ---------------------------- included header files ---------------------- */
#include <X11/X.h>
#include "libs/fvwm_x11.h"

/* ---------------------------- global definitions ------------------------- */

Expand Down
2 changes: 1 addition & 1 deletion fvwm/cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define FVWM_CURSOR_H

/* ---------------------------- included header files ---------------------- */
#include <X11/Xlib.h>
#include "libs/fvwm_x11.h"

/* ---------------------------- global definitions ------------------------- */

Expand Down
3 changes: 1 addition & 2 deletions fvwm/decorations.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
#include "config.h"

#include <stdio.h>
#include <X11/Xproto.h>
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/FShape.h"
#include "libs/Parse.h"
Expand Down
2 changes: 1 addition & 1 deletion fvwm/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
#include <unistd.h>
#include <assert.h>
#include <stdbool.h>
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/ftime.h"
#include "libs/fvwmlib.h"
#include "libs/System.h"
Expand Down
3 changes: 1 addition & 2 deletions fvwm/ewmh.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
#include "config.h"

#include <stdio.h>
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "fvwm.h"
#include "execcontext.h"
Expand Down
1 change: 0 additions & 1 deletion fvwm/ewmh.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Bool EWMH_CMD_Style(char *token, window_style *ptmpstyle, int on);
/* Extended window manager hints support */

#include "libs/FScreen.h"
#include <X11/Xmd.h>

void EWMH_SetCurrentDesktop(struct monitor *);
void EWMH_SetNumberOfDesktops(struct monitor *);
Expand Down
4 changes: 1 addition & 3 deletions fvwm/ewmh_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#include <stdio.h>

#include <X11/Xlib.h>
#include <X11/Xmd.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/Parse.h"
#include "libs/Strings.h"
Expand Down
4 changes: 1 addition & 3 deletions fvwm/ewmh_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#include <stdio.h>

#include <X11/Xlib.h>
#include <X11/Xmd.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/Strings.h"
#include "fvwm.h"
Expand Down
4 changes: 1 addition & 3 deletions fvwm/ewmh_names.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
#include "config.h"

#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/Xmd.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/Flocale.h"
#include "libs/FlocaleCharset.h"
Expand Down
3 changes: 1 addition & 2 deletions fvwm/externs.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
#ifndef FVWM_EXTERNS_H
#define FVWM_EXTERNS_H

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "libs/fvwm_x11.h"

void Done(int, char *) __attribute__((__noreturn__));
void set_init_function_name(int n, const char *name);
Expand Down
3 changes: 1 addition & 2 deletions fvwm/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@

#include <stdio.h>

#include <X11/keysym.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/charmap.h"
#include "libs/wcontext.h"
Expand Down
5 changes: 1 addition & 4 deletions fvwm/fvwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@

/* ---------------------------- included header files ---------------------- */

#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/Intrinsic.h>
#include "libs/fvwm_x11.h"
#include "libs/PictureBase.h"
#include "libs/Fft.h"
#include "libs/FRender.h"
Expand Down
4 changes: 1 addition & 3 deletions fvwm/fvwm3.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
#include <sys/systeminfo.h>
#endif

#include <X11/Xproto.h>
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/envvar.h"
#include "libs/Strings.h"
Expand Down
2 changes: 1 addition & 1 deletion fvwm/icccm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/FEvent.h"
#include "fvwm.h"
#include "externs.h"
Expand Down
3 changes: 2 additions & 1 deletion fvwm/icccm2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

#ifndef FVWM_ICCCM2_H
#define FVWM_ICCCM2_H
#include <X11/Xlib.h>

#include "libs/fvwm_x11.h"

extern void SetupICCCM2(Bool replace_wm);
extern void CloseICCCM2(void);
Expand Down
2 changes: 1 addition & 1 deletion fvwm/icons.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ ICON_DBG((stderr,"ciw: iph%s used '%s'\n",
{
int newWidth = fw->icon_g.picture_w_g.width;
int newHeight = fw->icon_g.picture_w_g.height;
Boolean resize = False;
Bool resize = False;

if (newWidth < fw->min_icon_width)
{
Expand Down
2 changes: 1 addition & 1 deletion fvwm/menubindings.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include "config.h"

#include <stdio.h>
#include <X11/keysym.h>

#include "libs/fvwm_x11.h"
#include "libs/Parse.h"
#include "libs/Bindings.h"
#include "libs/charmap.h"
Expand Down
2 changes: 1 addition & 1 deletion fvwm/menubindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#ifndef FVWM_MENU_BINDINGS_H
#define FVWM_MENU_BINDINGS_H
#include <X11/Xlib.h>

#include "libs/Bindings.h"

/* ---------------------------- included header files ---------------------- */
Expand Down
2 changes: 1 addition & 1 deletion fvwm/menugeometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <stdio.h>

#include <X11/keysym.h>
#include "libs/fvwm_x11.h"

#include "fvwm.h"
#include "externs.h"
Expand Down
2 changes: 1 addition & 1 deletion fvwm/menugeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define FVWM_MENU_GEOMETRY_H

/* ---------------------------- included header files ---------------------- */
#include <X11/Xlib.h>
#include "libs/fvwm_x11.h"

/* ---------------------------- global definitions ------------------------- */

Expand Down
2 changes: 1 addition & 1 deletion fvwm/menuparameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define FVWM_MENU_PARAMETERS_H

/* ---------------------------- included header files ---------------------- */
#include <X11/Xlib.h>
#include "libs/fvwm_x11.h"
#include "execcontext.h"

/* ---------------------------- forward declarations ----------------------- */
Expand Down
3 changes: 1 addition & 2 deletions fvwm/menuroot.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
#define FVWM_MENU_ROOT_H

/* ---------------------------- included header files ---------------------- */
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#include "libs/fvwm_x11.h"
#include "menudim.h"
#include "libs/PictureBase.h"
/* ---------------------------- forward declarations ----------------------- */
Expand Down
1 change: 0 additions & 1 deletion fvwm/menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include <stdio.h>
#include <assert.h>
#include <X11/keysym.h>

#include "libs/ftime.h"
#include "libs/fvwmlib.h"
Expand Down
5 changes: 2 additions & 3 deletions fvwm/menustyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

#include <stdio.h>
#include <assert.h>
#include <X11/keysym.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/Parse.h"
#include "libs/ColorUtils.h"
Expand Down Expand Up @@ -151,7 +150,7 @@ static void menustyle_copy_face(MenuFace *destmf, MenuFace *origmf)
* Reads a menu face line into a structure (veliaa@rpi.edu)
*
*/
static Boolean menustyle_parse_face(char *s, MenuFace *mf, int verbose)
static Bool menustyle_parse_face(char *s, MenuFace *mf, int verbose)
{
char *style;
char *token;
Expand Down
2 changes: 1 addition & 1 deletion fvwm/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

#include <stdio.h>
#include <stdarg.h>
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/ftime.h"
#include "libs/Parse.h"
#include "libs/Target.h"
Expand Down
1 change: 0 additions & 1 deletion fvwm/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#ifndef FVWM_MISC_H
#define FVWM_MISC_H

#include <X11/Xlib.h>
#include "fvwm.h"

/* ---------------------------- included header files ---------------------- */
Expand Down
1 change: 0 additions & 1 deletion fvwm/move_resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include <stdio.h>
#include <math.h>
#include <X11/keysym.h>

#include "libs/fvwmlib.h"
#include "libs/Picture.h"
Expand Down
2 changes: 0 additions & 2 deletions fvwm/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

#include "config.h"

#include <X11/Intrinsic.h>

#include "update.h"
#include "style.h"
#include "fvwm.h"
Expand Down
2 changes: 1 addition & 1 deletion fvwm/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#endif
#include <signal.h>
#include <fcntl.h>
#include <X11/Xatom.h>

#include "libs/fvwm_x11.h"
#include "libs/fvwmlib.h"
#include "libs/FSMlib.h"
#include "libs/Strings.h"
Expand Down
1 change: 0 additions & 1 deletion fvwm/virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <stdio.h>

#include <X11/keysym.h>
#include "libs/fvwmlib.h"
#include "libs/FGettext.h"
#include "libs/Grab.h"
Expand Down
2 changes: 1 addition & 1 deletion libs/Bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef FVWMLIB_BINDINGS_H_H
#define FVWMLIB_BINDINGS_H_H

#include <X11/Xutil.h> /* XClassHint */
#include "fvwm_x11.h"

/* ---------------------------- global definitions ------------------------- */

Expand Down
4 changes: 1 addition & 3 deletions libs/ClientMsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
#ifndef FVWMLIB_CLIENTMSG_H
#define FVWMLIB_CLIENTMSG_H

#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include "fvwm_x11.h"

void send_clientmessage(Display *disp, Window w, Atom a, Time timestamp);

Expand Down
4 changes: 1 addition & 3 deletions libs/ColorUtils.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#ifndef FVWMLIB_COLORUTILS_H
#define FVWMLIB_COLORUTILS_H

#include <X11/Xlib.h>
#include <X11/Intrinsic.h>

#include "fvwm_x11.h"
/*
* Stuff for dealing w/ bitmaps & pixmaps:
*/
Expand Down
3 changes: 1 addition & 2 deletions libs/Colorset.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

#ifndef FVWMLIB_COLORSETS_H
#define FVWMLIB_COLORSETS_H
#include <X11/Xlib.h>
#include <X11/Intrinsic.h>
#include "fvwm_x11.h"
#include "PictureBase.h"

typedef struct Colorset
Expand Down
2 changes: 1 addition & 1 deletion libs/CombineChars.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define FVWMLIB_COMBINECHARS_H

#include "config.h"
#include <X11/Xutil.h>
#include "fvwm_x11.h"

typedef struct
{
Expand Down
2 changes: 1 addition & 1 deletion libs/Event.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef FVWMLIB_EVENT_H
#define FVWMLIB_EVENT_H

#include <X11/Xlib.h>
#include "fvwm_x11.h"

/*
* Return the subwindow member of an event if the event type has one.
Expand Down
1 change: 0 additions & 1 deletion libs/FBidi.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
#define FVWMLIB_FBIDI_H

#include "config.h"
#include <X11/Xlib.h>
#include "CombineChars.h"

#if HAVE_BIDI
Expand Down
Loading

0 comments on commit 0bb15b2

Please sign in to comment.