Commit Graph

413 Commits

Author SHA1 Message Date
mcbride
696e2f3de3 Run the program if xidle recieves a SIGUSR1.
ok matthieu jmc
2008-02-10 10:57:05 +00:00
ian
3e0ea9a7e9 Trivial typo in recent "exec windowmanager" addition 2008-01-22 17:35:23 +00:00
oga
225642aa5e All of the 9wm code in cwm has been removed or re-written. Edit LICENSE
and the manpage to reflect this. While i'm here remove the note in todo
about cleaning up the menu code; it's been done.

ok ian@, okan@ (he also provided most of the manpage rework)
2008-01-16 16:14:55 +00:00
oga
78d222002b huge amount of cleanup and dead code removal.
full description of changes:
-remove fontlist, and all associated structures/calls, it's not needed.
 this also removes any doubt about leftover 9wm code (the list was
 borrowed from it). Since cwm now uses Xft for everything, the legacy
 font handling is just not needed.
-add /* FALLTHROUGH */ comments into grab_{label,menu}. I actually
 didn't intend grab_menu to be a fallthrough, but it actually works quite
 well there, so remove the extra rectangle drawing. I love it when that
 happens.
-remove a couple of unused prototypes that were obviously missed
 before.
-remove a bunch of commented out or if 0ed out code. It doesn't look to
 be coming back anytime soon.
-several functions returned an int, but this was never checked. most of
 them only failed if they failed to grab the pointer (thus the internal
 state didn't change), so just make them void and return early if this is
 the case.
-remove several unused functions and some useless variables.

knocks something like 200bytes off the stripped binary size for me.

ok marc@, tested by several others.
2008-01-16 11:39:20 +00:00
oga
7153b9f746 Rewrite most of grab_menu in grab.c (it was partly 9wm code).
This should work functionally the same, with a few simplifications.

Changes:
- we don't care if you're holding another button when you release the
  menu key if you don't want to select anything, move off the menu.
- remove the hysteresis from the menu selection (before you had to move
  more than three pixels onto a new menu entry before it selected it)
- simplify a lot of the selection code
- kill dead code.
- do what the XXX comment said and cache the screensize (i may tweak
  this later).

As far as I can tell, the only code remaining from 9wm is the list of
fonts in calmwm.c. Others appear to concur.

ok marc@, looked over and tested by a few others. Reminders from okan@.
2008-01-14 15:21:10 +00:00
matthieu
f55efa314e More __foo__ substitutions for xterm manual pages. From
Tim van der Molen, Thanks.
2008-01-13 17:22:58 +00:00
matthieu
c8a36eb115 regen 2008-01-12 14:20:50 +00:00
matthieu
a80a36f4ed On OpenBSD use 'openssl rand 16 -hex' to generate the cookie.
This avoids the quoting hell needed for 'dd /dev/arandom |
 hexdump' that confuses cpp from gcc 2.95.
2008-01-12 14:20:27 +00:00
oga
1385b56548 - Remove the "all rights reserved" tag at the top of most of the source
files, and replace them with the actual ISC license.

- add license to the manpage (it was lacking before)

- correct license statement in the README

Permission given by Marius (copyright holder):
"1. please replace with the standard ISC license
2. you may add the ISC license to the man page
3. feel free to replace the information in the README as well"

and Dros (copyright holder for group.c):
"Please switch group.c to the ISC License."

ok ian@
2008-01-11 16:06:44 +00:00
oga
0e2ef8a148 Kill some more dead code, cursor.c goes away.
ok marc@
2008-01-08 20:21:43 +00:00
matthieu
27a404c4f3 cleandir needs clean 2008-01-06 18:13:58 +00:00
matthieu
2249aa4d17 "fix" make distclean 2008-01-06 10:56:10 +00:00
matthieu
a6465035d9 Remove a generated file. 2008-01-06 10:11:42 +00:00
matthieu
bf3696e31a Set the resolution at which fonts in the login widget are rendered.
Switch to Luxi TrueType fonts which look more like helvetica.
Tested by bernd@.
2008-01-05 17:23:14 +00:00
marc
1545e483a5 Adjust initial window placement with any geometry that would place
the window at or over the right or bottom edge.
OK oda@
2008-01-03 20:20:20 +00:00
oga
ee4e50a6e2 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
oga
52cb71d16c Kill some warnings intoduced with the execwm feature.
ok marc@
2008-01-03 01:56:25 +00:00
marc
1b1b4fdaa3 remove declaration of removed function
Reminded by matthieu@  (thanks!)
2008-01-02 20:54:32 +00:00
marc
535778c84f remove unused code
OK oga@
2008-01-02 20:47:11 +00:00
marc
296e93a651 Only use the x,y values from the XSizeHints structure when they are greater
than zero.   The fields are obsolete and not always used.
OK jasper@
2008-01-01 22:28:59 +00:00
matthieu
53c3762283 Fix the computed width of the rectangle to clear when no
error message is present and Xft is used.
2008-01-01 21:26:57 +00:00
okan
66ad53aad5 allow the search feature to work in the root window, like other similar ones.
ok todd@
2007-12-31 02:49:45 +00:00
ian
bb9a96e5b3 Add a "restart wm" function. ok oga@ 2007-11-28 16:35:52 +00:00
oga
cd016f1192 Another messed up keybinding.
I blame todd...

ok okan@
2007-11-28 16:02:37 +00:00
okan
b017f68352 re-add a lost group keybinding
ok oga@ todd@
2007-11-27 17:17:08 +00:00
matthieu
36c8394511 Fix logic inversion in geometry computation in norender digital mode.
patch from millert@, who's apparently to shy to commit to xenocara.
2007-11-27 11:30:33 +00:00
matthieu
787f23118b enable xbacklight 2007-11-24 17:07:52 +00:00
matthieu
381e02cb6f BSD makefile plus regen autotools stuff 2007-11-24 17:07:03 +00:00
matthieu
b48b541785 xbacklight 1.1 2007-11-24 17:04:53 +00:00
matthieu
4604f50a51 merge xrandr 1.2.2 2007-11-24 17:01:24 +00:00
matthieu
7f9b9fc892 xrandr 1.2.2 2007-11-24 16:58:12 +00:00
oga
cc56ce7a75 Make cwm default keybindings always exist. Additional keybindings now
overlap with the new ones, overriding them. Also a new "unmap" keyword
in binding definitions now unmaps a binding without adding a new one.

This seriously shrinks the ~/.calmwm/.keys directory of anyone who defines
their own bindings whilst wanting some of the defaults.

Looked over, liked and ok todd@
2007-11-19 22:18:16 +00:00
jmc
98e3c06118 fix a pasto: documentation/5639 from viq
while i'm at it:
- fix an .El botch up
- kill trailing whitespace
- new sentence, new line
2007-11-16 23:04:56 +00:00
todd
f18f596ede introduce conf_bindname() to drastically simplify conf.c
really liked by oga@
2007-11-13 23:26:04 +00:00
todd
87e41b32a9 enable pointer movement in cwm via C-<arrowkeys>
looked over by oga@
2007-11-13 23:08:49 +00:00
oga
b8e78047f2 Small manpage nit.
From Okan Demirmen, thanks!
2007-11-08 13:03:22 +00:00
oga
2651bb08ad Change MOVE_AMOUNT in kbfunc.c to 1 from 10. This allows more fine tuning when
moving and resizing windows using the keyboard.

Future diffs might make this value configurable.

ok jasper@, todd@.
2007-11-07 22:02:04 +00:00
oga
d65837aad5 Document cwm's keybinding support. It was already there, but not in the manpage.
While I'm here add support for extra modifier keys.

"commit commit!" jasper@, ok todd@.
2007-11-07 22:00:26 +00:00
oga
7732ed6345 Add support to cwm for resizing the windows using Control-Meta-[hjkl].
Please note that this remaps Control-Meta-L (label) to Control-Meta-N (name).

ok jasper@, todd@.
2007-11-07 21:58:03 +00:00
ian
877d86684f wording 2007-10-07 16:56:21 +00:00
matthieu
f0133a7a00 merge xfs 1.0.5. This version contains security fixes for heap overflow
and corruption vulnerabilites. CVE-2007-4568.
2007-10-02 19:21:11 +00:00
matthieu
e79e53bbfb xfs 1.0.5 2007-10-02 19:15:44 +00:00
jasper
8974a1ab8d When cycling, only the end of the window names will be printed if the
name is too long. so show the beginning instead.

from Pierre Riteau <pierre.riteau at free.fr>

"looks correct" matthieu@
2007-10-02 18:01:45 +00:00
matthieu
3af148660f regen 2007-09-28 20:23:21 +00:00
matthieu
0e83804bba use /dev/arandom to generate the cookie. Problem noticed by
Joerg Sonnenberger. Thanks.
2007-09-28 20:23:04 +00:00
matthieu
4798ec43f3 revert previous. This is not the good place to patch. 2007-09-28 20:22:10 +00:00
matthieu
23feae05f5 use /dev/arandom to generate the cookie. Problem noticed
by Joerg Sonnenberger. Thanks.
2007-09-28 20:12:18 +00:00
matthieu
7bf5786e70 Fix the commented out way to disable root logins.
Reported by Iruata Souza.
2007-09-27 19:21:13 +00:00
matthieu
17cb7ede6c merge xwininfo 1.0.3 2007-09-16 17:31:43 +00:00
matthieu
9977061927 xwininfo 1.0.3 2007-09-16 17:30:15 +00:00
matthieu
7387f85bf1 merge xvinfo 1.0.2 2007-09-16 17:28:15 +00:00
matthieu
835b00790e xvinfo 1.0.2 2007-09-16 17:26:07 +00:00
matthieu
0ff179393d merge xsetroot 1.0.2 2007-09-16 17:23:32 +00:00
matthieu
58c489655b xsetroot 1.0.2 2007-09-16 17:21:49 +00:00
matthieu
fec256451c merge xset 1.0.3 2007-09-16 17:19:11 +00:00
matthieu
37f8d7274f xet 1.0.3 2007-09-16 17:17:35 +00:00
matthieu
9878bac117 merge xrdb 1.0.4 2007-09-16 17:16:13 +00:00
matthieu
0ff6d88dfa xrdb 1.0.4 2007-09-16 17:14:29 +00:00
matthieu
f3c6326df7 merge xprop 1.0.3 2007-09-16 17:11:49 +00:00
matthieu
a0a1a73a3a AC_CHECK_HEADERS_ONCE -> AC_CHECK_HEADERS to keep compatibility
with autoconf 2.59 for now.
2007-09-16 17:11:21 +00:00
matthieu
623309c577 xprop 1.0.3 2007-09-16 17:05:26 +00:00
matthieu
fbff1ef522 merge xmodmap 1.0.3 2007-09-16 17:03:32 +00:00
matthieu
7d60ff45b2 xmodmap 1.0.3 2007-09-16 17:02:03 +00:00
matthieu
bd9d60ad55 merge xmessage 1.0.2 2007-09-16 16:59:47 +00:00
matthieu
29e2756ff0 xmessage 1.0.2 2007-09-16 16:57:45 +00:00
matthieu
8aee380437 merge xman 1.0.3 2007-09-16 16:55:45 +00:00
matthieu
02a3dd2824 xman 1.0.3 2007-09-16 16:51:46 +00:00
matthieu
ee39ea4354 merge xmag 1.0.2 2007-09-15 17:23:05 +00:00
matthieu
fa2ab941bd xmag 1.0.2 2007-09-15 17:20:36 +00:00
matthieu
532e51aa57 merge xload 1.0.2 2007-09-15 17:16:52 +00:00
matthieu
9c3899b537 xload 1.0.2 2007-09-15 17:14:49 +00:00
matthieu
59ec33559d merge xinit 1.0.6 2007-09-15 17:12:01 +00:00
matthieu
7fd4ac2fb1 xinit 1.0.6 2007-09-15 17:05:29 +00:00
matthieu
fa21c3270a merge xhost 1.0.2 2007-09-15 16:00:30 +00:00
matthieu
d6759afeab xhost 1.0.2 2007-09-15 15:58:47 +00:00
matthieu
f020cfcb46 merge xgamma 1.0.2 2007-09-15 15:52:21 +00:00
matthieu
18d423ef4b xgamma 1.0.2 2007-09-15 15:49:35 +00:00
matthieu
9aab5a6490 merge xdriinfo 1.0.2 2007-09-15 15:39:51 +00:00
matthieu
3d61dd3fc4 xdriinfo 1.0.2 2007-09-15 15:35:32 +00:00
matthieu
06bf462789 merge xdm 1.1.6 2007-09-15 15:22:59 +00:00
matthieu
b55ce0c285 xdm 1.1.6 2007-09-15 15:13:04 +00:00
matthieu
62f469b3bf merge xconsole 1.0.3 2007-09-13 21:15:15 +00:00
matthieu
f6734f3c2a xconsole 1.0.3 2007-09-13 21:10:16 +00:00
matthieu
ccf5c8c675 merge xclock 1.0.3 2007-09-12 11:55:22 +00:00
matthieu
4f7a0beba6 xclock 1.0.3 2007-09-12 11:52:32 +00:00
matthieu
9f5d7767a1 merge xcalc 1.0.2 2007-09-12 11:38:09 +00:00
matthieu
ba1c346bf4 xcalc 1.0.2 2007-09-12 11:34:14 +00:00
matthieu
ca718b24b2 merge setxkbmap 1.0.4 2007-09-12 11:12:18 +00:00
matthieu
58e8aa09a2 setxkbmap 1.0.4 2007-09-12 11:08:59 +00:00
matthieu
b004e47bf8 merge sessreg 1.0.3 2007-09-11 14:29:16 +00:00
matthieu
f9d2a33fbd sessreg 1.0.3 2007-09-11 14:26:27 +00:00
matthieu
9f945fbaef merge mkfontdir 1.0.3 2007-09-11 13:58:31 +00:00
matthieu
fdeb77034e mkfontdir 1.0.3 2007-09-11 13:56:17 +00:00
matthieu
44d4697efa merge ico 1.0.2 2007-09-11 11:31:58 +00:00
matthieu
498643624b ico 1.0.2 2007-09-11 11:28:37 +00:00
matthieu
e5591833f2 merge iceauth 1.0.2 2007-09-11 11:24:39 +00:00
matthieu
3960c21118 iceauh 1.0.2 2007-09-11 11:19:35 +00:00
jasper
3bbf519bbb fix buffer overflow, as sizeof(paths) won't fit inside the array.
from Stefan Kempf

"looks right to me" matthieu@
2007-09-06 06:01:14 +00:00
matthieu
3f0bef6b35 Add some usage notes describing the current limitations. 2007-08-31 22:02:51 +00:00
matthieu
7c79bd957e - Make the draw_text() function more generic.
- Display an error message on the screen when the calibration error
  is too high before re-starting.
2007-08-31 21:53:55 +00:00
matthieu
69e64ab313 Switch to Xft/Xrender rendering. Welcome to the 21st century. 2007-08-31 21:17:33 +00:00
matthieu
f45e8d18fc Normally, rawmode should not be selected in the output of xtsscale. 2007-08-31 21:14:04 +00:00
matthieu
954f29d459 Remove the useless ts structure, and fix the setting
of the new calibration values.
2007-08-31 20:59:33 +00:00
matthieu
63b35455d7 Fix error computation, in the case where one axis is inverted. 2007-08-31 20:28:18 +00:00
matthieu
bd8915f09a First round of bug fixes/enhancements.
- fix arithmetic errors.
- auto-detect swapxy.
2007-08-30 19:45:25 +00:00
matthieu
0a2bda0266 Install new xterm icons. 2007-08-25 19:17:16 +00:00
matthieu
f3e9bf06bc update to xterm 229. Tested on various architectures by aanriot@ 2007-08-25 18:58:42 +00:00
matthieu
bb994eccf4 import xterm 229 2007-08-25 18:53:27 +00:00
matthieu
9b62700738 Enable Xft support in xdm. X resources for greeter will probably need
some tweaks for low resolution/low colors displays.
2007-08-22 18:45:09 +00:00
matthieu
b46e07479c Nick@ reported that Shift-F1 to Shift-F4 behaviour changed in
xterm-225. This is now controlled by a resource. So force it to the
legacy mode.
2007-08-08 14:35:12 +00:00
matthieu
39d2de7893 Disable xdmcp over IPv6 for now, like it was in XF4 because the
current code listens to IPv6 only by default.
tested and ok mbalmer@
2007-08-06 13:48:50 +00:00
matthieu
a462491a05 Fix quoting for cpp processing 2007-08-05 20:01:48 +00:00
matthieu
ce9833d5cb bring OpenBSD local diffs back in 2007-08-05 19:54:19 +00:00
matthieu
0fbe2a53f3 merge xdm 1.1.4 2007-08-05 19:37:39 +00:00
matthieu
9ab55f74d2 Import xdm 1.1.4 2007-08-05 19:00:25 +00:00
todd
3540f26824 crank to 4.2
puffy v4.2 courtesy Ty Semaka, thanks!
2007-08-03 03:46:18 +00:00
mbalmer
6fa4e46eb4 Typo, it's xsetroot, not setroot.
ok matthieu.
2007-07-30 12:38:19 +00:00
matthieu
9be58eca1a regen 2007-07-29 11:34:29 +00:00
matthieu
46796a2b84 preprocess man page with tbl 2007-07-05 22:20:55 +00:00
matthieu
678c0fa793 the xterm manual page needs to be pre-processed by tbl. 2007-07-05 22:09:06 +00:00
jmc
76c5c60953 Okan Demirmen sent me a diff to kill some silly Fa macros, then persuaded
me to clean this page up;

jasper and bernd gave oks for the Fa removal;
2007-06-29 21:10:37 +00:00
matthieu
2b69aaee49 mkfontscale now have a workaround to build on sh. So re-enable it.
Remainded by todd@.
2007-06-28 18:48:49 +00:00
todd
4253076c6b implement keyboard initiated movement of windows
enhanced version of diff originally from niallo@
man bits from niallo@
ok niallo@ japser@
2007-06-27 13:28:22 +00:00
niallo
b321a79f63 modify "exec" dialog so that it auto-completes based on executables in
_PATH_DEFPATH

add an "ssh-to" dialog which auto-completes based on contents of
 ~/.ssh/known_hosts (M-.)

testing and eyeballing by Simon Kuhnle <simonkuhnle at web.de>, todd@, pedro@
mk@ and David Cathcart <david at cathcart.cx>

ok todd@
2007-06-26 19:34:26 +00:00
matthieu
b3161bf821 Fix static linking. 2007-06-20 21:46:22 +00:00
matthieu
ac30841897 pretty SRCS list. 2007-06-15 19:43:57 +00:00
matthieu
53c7172c05 Merge xterm version 225 2007-06-15 19:34:50 +00:00
matthieu
06d70fc7d7 import xterm 225 2007-06-15 19:29:55 +00:00
jasper
9805442434 don't map hidden windows on re-start.
from aon@iki.fi
2007-06-08 16:29:19 +00:00
jasper
4869cf83ca document the autogroup functionality.
with aon@iki.fi
2007-06-06 22:08:02 +00:00
jasper
f1ac24d0ea make it possible to cycle through the windows when non are selected.
(eg. when they're hidden, now you can cycle through them)

from aon@iki.fi
2007-06-05 19:03:20 +00:00
jasper
a60196d67f draw window borders when redrawing a window
from aon@iki.fi
2007-06-05 18:57:03 +00:00
matthieu
816b8a79ef use make install-strip for the real install. 2007-05-31 15:55:45 +00:00
matthieu
204aa41af3 merge bdftopcf 1.0.1 2007-05-31 05:02:23 +00:00
matthieu
3af72200d7 import bdftopcf version 1.0.1 2007-05-31 04:43:46 +00:00
matthieu
4cf94bad7a fix switching to UTF-8 mode. tested and ok naddy@, msf@. 2007-05-30 21:39:16 +00:00
jasper
4f2fd05371 show hidden windows when they should (eg. when the pointer is warped to them)
from aon@iki.fi via bernd@
2007-05-29 22:38:44 +00:00
jasper
a2e344b05f don't give borderless windows a border, when they're inactive
from aon@iki.fi via bernd@
2007-05-29 22:35:04 +00:00
jasper
4c01ca1125 add two missing closedir()'s
from Antti Nykänen <aon at iki.fi> via bernd@

ok pedro@
2007-05-28 21:11:39 +00:00
pedro
357754d976 Remove files that shouldn't be there, okay matthieu@ 2007-05-28 20:29:25 +00:00
jasper
857d1a8dab convert globals from G_foo to Foo, as per TODO.
"looks good" pedro@, ok matthieu@
2007-05-28 18:34:27 +00:00
matthieu
ff940966b4 Fix installation phase to not overwrite existing /etc/X11/xdm/.
Based on an initial patch by kili@. ok kili@
2007-05-28 17:36:57 +00:00
jasper
c3fa8832ed full screen sized windows
ok matthieu@
2007-05-27 09:23:12 +00:00
jasper
8326dc8ba6 autoconf junk was zapped, so no need for HAVE_CONFIG_H 2007-05-22 22:14:42 +00:00
jasper
1706741235 remove useless #ifdef
ok pedro@
2007-05-22 17:59:17 +00:00
jasper
c79e190087 remove bogus entry (shortcut for xlock) which has been taken care of (C-M-DEL)
ok pedro@
2007-05-22 17:38:51 +00:00
robert
6f6554cb81 more information about passing scale values to wsconsctl(8) 2007-05-22 09:43:22 +00:00
robert
12bf0133a6 hook xtsscale(4) to the build 2007-05-22 09:23:09 +00:00
jasper
9f4c24c2df we don't use this file on openbsd, so zap it.
ok matthieu@ pedro@
2007-05-21 19:24:46 +00:00
jasper
620c663fe1 fix optind
ok ray@
2007-05-21 07:53:11 +00:00