Commit Graph

448 Commits

Author SHA1 Message Date
okan
33d3a7edf1 - use $PATH before _PATH_DEFPATH, from Tim van der Molen
- plug leak, noticed by oga

feedback and ok oga@
2008-04-05 21:09:19 +00:00
simon
3bf9d124cf Sync usage() with reality and manpage.
"ok, but no cookie" oga@
2008-04-03 13:58:57 +00:00
matthieu
84ff75cce6 Clear the password as early as possible in the BSD auth case. ok deraadt@ 2008-04-02 20:08:52 +00:00
oga
da6f5be7c3 Fix a couple of issues with the maximization code.
If a window is vertically maximized, then resized, before the MAXIMIZED
flag wasn't removed, now it is. so doing a resize then does the right
thing.

Also, separate flags are needed for vertical and normal maximziation,
else when you do vertical-maximize, followed by maximize, the window
returns to it's original size.

ok simon@, okan@
2008-03-26 15:45:42 +00:00
matthieu
bbc31bf586 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
matthieu
d00d2dd896 msg_controllen has to be CMSG_SPACE so that the kernel can account for
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len).  This
works now that kernel fd passing has been fixed to accept a bit of
sloppiness because of this ABI repair.
lots of discussion with kettenis. From deraadt@
2008-03-24 21:24:52 +00:00
simon
0141485332 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
okan
f8bcc1f10d allow autogrouping and sticky mode to work together
ok oga@
2008-03-22 21:34:07 +00:00
oga
d8e2d259e2 Rip out, burn, and dance around the grave of group-edit mode.
I've yet to speak to anyone who uses it, so just kill it.

You can still add/remove from groups using the mouse binding.  Groups
may get a re-work sometime soon if i have a stroke of genius.

knocks about 4k off the i386 binary for me.

ok okan@, todd@.
2008-03-22 15:09:45 +00:00
oga
420d083afc Remove a bunch of unused variables and incorrect comments.
"ok with me" okan@.
2008-03-22 14:09:02 +00:00
merdely
68bd73c06e Make xterm(1) and resize(1) correctly refer to X(7) instead of X(1).
ok matthieu@
2008-03-22 12:40:02 +00:00
matthieu
b3afb49cf6 Get rid of strcat() and strcpy(), fixing a potential stack overflow.
With help and ok deraadt@, millert@, oga@.
2008-03-20 20:45:10 +00:00
matthieu
ffca1db806 update to xterm 234. tested by merdely@, 'looks ok' deraadt@. 2008-03-19 21:15:46 +00:00
matthieu
dd869f4ed4 Remove a useless use of cat pointed by espie@ some time ago. 2008-03-19 20:31:09 +00:00
oga
4685ce9dbc As mentioned in my last commit, there was an issue where the switching
code would always assume that the number of windows to switch to was
three if there were more windows hidden. Check for CLIENT_HIDDEN when we
count. Now it counts correctly.

ok simon@.
2008-03-19 00:18:28 +00:00
oga
92c71b48a2 client_{,r}cycle() doens't need a client. so get rid of KBFUNC_NEEDSCLIENT.
this prevents the issue where you close or hide a window, and end up
with no client selected (you're on the root window). When that happened
alt-tab failed.  This, however, exposed to me a few more issues in the
alt-tabbing code:

-the code to detect how many lines we need looks bogus (you always get
three)

-alt-tabbing when everything is hidden always reawakes the most recent
window.

Fixes for these will be forthcoming.

ok simon@.
2008-03-18 00:48:56 +00:00
matthieu
7830df18ed Regen with autoconf 2.59-p2, with AM_SANITY check zapped. 2008-03-15 18:08:24 +00:00
matthieu
16236de311 Repair msg_controllen. In those cases it should just be
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because
of alignment. Based on fixes in base system.
2008-03-15 17:14:11 +00:00
sthen
4756cae49c typo fix. ok oga 2008-03-14 14:38:10 +00:00
matthieu
f0623845fe Correct CMSG_SPACE and CMSG_LEN usage, same fixes as in the base system.
ok deraadt@
2008-03-13 06:53:06 +00:00
matthieu
6da4224300 use explicit path to openssl. Reported by Dave Del Debbio. Thanks. 2008-03-07 07:48:10 +00:00
matthieu
d5cb652a3f Change the default for XSRCDIR to /usr/xenocara. ok deraadt@ 2008-03-03 07:01:44 +00:00
matthieu
ef3b0a0644 Fix initialization of vmin. This has caused script(1) to exit immediatly
when started inside an xterm that started with vmin=0 (because it had
no tty to inherit the correct value from). ok kettenis@, krw@, oga@.
2008-02-24 22:22:48 +00:00
oga
e2e723ac91 Fix a build race in ssh-askpass. This shouldn't happen, so XXX it.
ok matthieu@.

xenocara is now locked.
2008-02-22 11:35:22 +00:00
todd
655aabf8b5 puffy 4.3 2008-02-21 08:10:52 +00:00
todd
f076f9f5f7 no dri/GL apps for landisk; ok matthieu@ 2008-02-21 08:04:44 +00:00
oga
43f7e32207 add exec_wm to calmwm.h, it was missing (bad ian@!)
Also, exec_wm() currenty err()s out if something failed with the exec,
killing the currently running wm. This is bad. Replace the err() with
warn() instead.


from Gleydson Soares, thanks!
2008-02-20 13:00:18 +00:00
oga
95429f5a28 Typo: s/supression/suppression
from Pierre Riteau, thanks!
2008-02-20 12:56:10 +00:00
miod
1d9ffcbd8d Disable a few more binaries on m88k due to static linking. 2008-02-16 21:41:37 +00:00
matthieu
e8985d1d21 Change the default pointerMode for real now. 2008-02-16 09:49:28 +00:00
matthieu
3d2000e90b Merge xterm 232.
New local change: default value for pointerMode is 0.
2008-02-16 09:40:00 +00:00
matthieu
065d15d7f3 Import xterm version 232. tested by many. 2008-02-16 09:34:45 +00:00
oga
5683e22512 usage never returns, and thus should be __dead.
ok jasper@.
2008-02-13 21:48:03 +00:00
oga
0f28b15cb7 add usage() for when an unknown option is given.
from Gleydson Soares <gsoares@gmail.com>, thanks!

ok jasper@
2008-02-13 21:04:19 +00:00
oga
10cf0b3574 Make cwm print the XDisplayName() if it fails to open the display,
instead of an error message that'll be gibberish to most people.

from Gleydson Soares. Thanks!

ok simon@.
2008-02-13 12:09:47 +00:00
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