mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-05 20:26:09 +01:00
ac188235ed
Hi there. awesome-client is now linked against the whole hog of x-related libs that awesome depends on. These get pulled in by awesome-client using the same LDFLAGS as awesome. Removing x-related libs from the LDFLAGS for awesome-client is only half of the story, as it also depends on util.c which now has a couple of x-related functions. The attached patch also splits these functions into a separate xutil.{c,h} file pair and teaches the rest of the files to use them. Apart from the small difference in file size (I see a 3-3.5% decrease in file size, both for a stripped and a non-stripped awesome-client binary), this should also somewhat reduce the startup time (since awesome-client won't have to map all of these libraries). Cheers... \n\n
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/*
|
|
* xutil.c - X-related useful functions header
|
|
*
|
|
* Copyright © 2007 Julien Danjou <julien@danjou.info>
|
|
* Copyright © 2006 Pierre Habouzit <madcoder@debian.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef AWESOME_XUTIL_H
|
|
#define AWESOME_XUTIL_H
|
|
|
|
#include "util.h"
|
|
|
|
Bool xgettextprop(Display *, Window, Atom, char *, ssize_t);
|
|
UICB_PROTO(uicb_spawn);
|
|
UICB_PROTO(uicb_exec);
|
|
|
|
#endif
|
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99
|