Commit Graph

48 Commits

Author SHA1 Message Date
Leah Neukirchen 35b0da9202 Makefile: use implicit rule for yacc
Closes #15.
2021-11-30 16:43:23 +01:00
A. Tammy 5fde2a2465 use PKG_CONFIG for cross compilation in gentoo
needed for ebuild validity across different platforms which define their specific PKGCONFIG variable

add underscore in PKG_CONFIG

Closes: #14 [via git-merge-pr]
2020-04-21 14:14:50 +02:00
Leah Neukirchen f2a2839cec Makefile: use gpg2 2020-01-04 21:45:05 +01:00
Leah Neukirchen fae50566fc Makefile: drop unused fontconfig dependency 2018-05-14 14:47:24 +02:00
Leah Neukirchen 5a46349ec7 cvsimport
* refs/heads/master:
  Use the key names from keysymdef.h in the default key bindings list for clarification.
  remove extra parentheses
  Pull over the remaining re-implemented window move/resize functions and create a wrapper so that the key and mouse based move/resize callbacks can be unified. This has already been done with other window operations and menus.
  rename one function, matching others, to help upcoming change
2017-07-27 15:07:12 +02:00
okan c039e7fb8c Pull over the remaining re-implemented window move/resize functions and create
a wrapper so that the key and mouse based move/resize callbacks can be unified.
This has already been done with other window operations and menus.
2017-07-14 17:23:38 +00:00
Leah Neukirchen 8908e5ec42 drop fgetln.c 2017-07-11 13:17:45 +02:00
okan eb79ce65c9 from src, by espie@:
no need to generate y.tab.h if nothing uses it, set YFLAGS to nothing
2017-07-06 17:01:10 +00:00
okan 74e4a3c60b remove debug that accidentally snuck in 2016-09-20 18:23:12 +00:00
okan 9cf3174696 Get rid of curcc, instead cycle through the queue; removes the need for
client_none().
2016-09-20 18:21:32 +00:00
Christian Neukirchen 6716719593 cvsimport 2015-07-01 16:40:15 +02:00
okan 8aa40078d1 Replace screen region info gathering with XRandR equivalent of Xinerama
queries (currently act on XRandR events anyway). Fall-back mode without
XRandR is still what X provides. This removes -lXinerama.
2015-06-26 15:21:58 +00:00
Christian Neukirchen ffbfc32999 add reallocarray.c 2015-03-29 18:12:47 +02:00
Christian Neukirchen 089ec389dd also sign releases with signify 2014-12-15 16:00:31 +01:00
Christian Neukirchen 1101877305 Make PREFIX, MANPATH and CFLAGS optional variables
This change will make it possible to override PREFIX, MANPATH and
CFLAGS using environment variables. This makes the Makefile a little
more flexible, benefiting both endusers and those porting to package
systems like FreeBSD Ports and pkgsrc.

By braakvaak@aol.com.
2014-03-21 18:47:05 +01:00
Christian Neukirchen 625be76fb9 Makefile: add sign action 2014-03-13 19:24:15 +01:00
Christian Neukirchen 0d6e8a9146 Makefile: rm -f is enough 2013-10-16 23:05:51 +02:00
Christian Neukirchen 5515a365ba cvsimport 2013-05-29 22:41:51 +02:00
okan 5b4c55616a move the 2 small font helper functions to xutil.c 2013-05-19 23:38:20 +00:00
Christian Neukirchen 3bf492d2e9 compile with -D_GNU_SOURCE to get all relevant prototypes 2012-05-04 17:44:27 +02:00
Christian Neukirchen 5f79bace21 Add release target to Makefile 2012-05-02 14:26:36 +02:00
Christian Neukirchen 96ebac8b04 fix pkg-config packages 2011-12-12 16:17:39 +01:00
Christian Neukirchen 7c7a5bdcdc rewrite Makefile 2011-10-05 17:48:33 +02:00
Christian Neukirchen 513c35dca9 cvsimport 2011-08-04 20:53:37 +02:00
naddy 9a6a2d3cf3 switch to installing source manuals:
* cope with new bsd.man.mk
* update imake configuration

ports use of imake remains unchanged
2011-06-23 22:48:59 +00:00
Christian Neukirchen 2bac9a6be9 cvsimport 2011-05-03 19:28:18 +02:00
okan 00b502b1da move the single keycode function directly into the menu code.
ok oga@
2011-03-22 10:47:59 +00:00
matthieu e03323d22e xcb is no longer optional. 2011-03-08 20:48:59 +00:00
Christian Neukirchen 5bc15cdb58 cvsimport 2010-12-24 23:42:39 +01:00
matthieu 111a88129d Explicitely link libxcb when needed for static arches. 2010-11-27 14:25:47 +00:00
Christian Neukirchen a64855f9cc Improve CFLAGS 2010-09-26 14:51:02 +02:00
Christian Neukirchen e6d9effa8d Use yacc instead of byacc 2010-09-26 01:46:05 +02:00
Christian Neukirchen 50aff37f50 Import linux.patch
Patch largely based on cwmbuild.sh from http://tamentis.com/hacks/cwm/
written by Bertrand Janin, updated by Christian Neukirchen.
2010-02-21 19:15:27 +01:00
todd 0548673f2f library dependency ordering matters for static archs, -lXext last in this case
from matthieu@, verified on vax
2009-01-19 20:23:19 +00:00
oga c07123ec78 Add -Wall to CFLAGS, it's helped find a few dodgy constructs.
ok okan@.
2009-01-11 21:48:27 +00:00
okan 590169ce24 - merge grab_sweep() into mousefunc_window_resize().
- merge grab_drag() into mousefunc_window_move().
- properly name, proto and static private functions.
- since we already do XMoveResizeWindow() and XMoveWindow() in (now)
mousefunc_window_resize() and mousefunc_window_move() respectively,
client_resize() and client_move() calls are unnecessary.

ok oga@
2009-01-11 18:34:46 +00:00
oga a0739c6cd4 Xinerama and XRandR dual head support for cwm(1). Now we detect the xrandr
reconfiguration events and change our sizes depending on that. We also detect
the xinerama screens for maximize, vertmaximize and initial window placement.

This could be improved by automatically resizing maximized windows when
the screen resolution changes and by moving windows that would be hidden
into visible space. Said changes will come shortly.

Tested by many. matthieu@ didn't oppose.
2008-09-29 23:16:46 +00:00
oga 60a88f54cc *sigh* Revert the diff that wasn't meant to go in yet.
note to self: When you mean to type cvs commit search.c, don't forget
the filename.
2008-09-22 14:28:04 +00:00
oga 61601991b5 Display the current window title not a previous one in the case of
``show all'' in the window search dialogue. Noticed and diff from Tim
van der Molen, thanks!
2008-09-22 14:15:03 +00:00
oga 6f1ed5bfe3 Don't link "-lX11 -lXau -lXdmcp" twice.
From Martin Toft, thanks!
2008-06-19 02:21:30 +00:00
okan bdcbbe7f53 confable menu and window mouse bindings from rivo nurges (thanks!) with
some minor fixups, man page bits and knf.

ok oga@
2008-06-14 21:48:54 +00:00
oga 1e46ba72f7 Pull out the behaviour in grab_label and search_start into one utility
function menu_filter(). The plan is to eventually merge in grab_menu too.
Shrinks the code a fair bit.

Also, change XMaskEvent for XWindowEvent to prevent getting exposes for other
windows. This is particuarly noticable on slow machines with a LOT of xterms
(todd, you're an odd man).

ok okan@, todd@.
2008-05-20 14:50:51 +00:00
matthieu e704b57d33 Introduce bsd.xconf.mk to set default config variables used
at several places in the Xenocara build in a central place instead
of duplicating the checks all over the place. ok oga@.
2008-03-25 23:41:50 +00:00
simon c3aa344e78 Replace the symlink configuration scheme with a simple yacc parser as
found in other places of the tree.  Remove sticky and font commandline
options and add another one for alternative config locations.
Split off cwmrc(5) from cwm(1), nuke #ifdef __OpenBSD__ while there.

tested by various kind people, feedback from oga@ and okan@ - thanks!
ok oga@, jasper@, okan@
2008-03-23 15:09:21 +00:00
oga 3de5c68888 Kill some more dead code, cursor.c goes away.
ok marc@
2008-01-08 20:21:43 +00:00
oga 847191cff3 Kill draw.c, nothing uses the code in it.
More dead code removals to come.

ok marc@
2008-01-03 01:58:16 +00:00
marc 01a3f493d6 remove unused code
OK oga@
2008-01-02 20:47:11 +00:00
bernd d957b53c6f Simple Makefile to build cwm. 2007-04-27 18:01:38 +00:00