Commit Graph

666 Commits

Author SHA1 Message Date
okan
ee7ecdb4de add Xr for cwm(1) 2008-07-11 15:20:04 +00:00
okan
d9407b888b no more hidden (and mysterious) config reloads and allow binding a key
to a config reload; CMS-r by default.

ok oga@
2008-07-11 15:18:29 +00:00
okan
2e276584ab replace snprintf with strlcpy
ok oga@
2008-07-11 14:24:34 +00:00
okan
de181a1c1f we already have ymax, so use it instead of asking X for it again.
ok oga@
2008-07-11 14:23:30 +00:00
okan
cfb9c394cb spacing, declaration lineup to be consistent throughout cwm,
readability, and a bit of knf.

ok oga@
2008-07-11 14:21:28 +00:00
todd
c727b6dd04 puffy 4.4 2008-07-02 02:29:59 +00:00
okan
9280b8fb5b only cycle through visible *and* non-ignored windows.
ok oga@
2008-06-30 17:52:37 +00:00
oga
ff24dcbd56 Allow a mouse binding to hide a window, and add a default keybinding for CMS-M3,
so it's hard to press by accident, but there if you need it.

requested (in a way) and tested by johan and todd.
2008-06-25 22:44:42 +00:00
oga
553a7ea586 Support mod4 (windows key) in mouse bindings too. 2008-06-25 22:40:27 +00:00
oga
ff29a8e71a Support shift in mouse bindings. There's really no reason not to.
tested by johan@ and todd@.
2008-06-25 22:38:36 +00:00
oga
5c700f8601 Actually grab the correct mouse buttons for a window, instead of doing the
old hardcoded ones (which now can be wrong).

tested by todd@ and johan@.
2008-06-25 22:37:29 +00:00
oga
7d5d330707 Sort flags.
From Pierre Riteau, thanks!

ok okan@.
2008-06-25 01:09:09 +00:00
oga
6963c8bb7d Stop keyboard move moving the window utterly off the screen. If that
happens there's no way to get it back.  Also, stop resize making a
windows size negative or zero. X does not like that one bit.

Diff from Martynas. Ok okan@.
2008-06-25 00:52:47 +00:00
matthieu
932e098f54 regen 2008-06-19 21:58:47 +00:00
matthieu
136098757a - Don't depend on installed lbxproxy.
- Comment out the lbxproxy config in sample configuration file.
problem noticed by naddy@
2008-06-19 21:58:14 +00:00
oga
cb1f8b37f8 Don't link "-lX11 -lXau -lXdmcp" twice.
From Martin Toft, thanks!
2008-06-19 02:21:30 +00:00
oga
2ece6ad4cf No need to map/unmap the window on hide/show since we already do the
same to its parent.

"makes sense" okan@.
2008-06-18 20:42:29 +00:00
matthieu
2a567d887f Tis file is no longer in xinit 1.1.0. 2008-06-18 20:33:15 +00:00
matthieu
1420b92429 update to xinit 1.1.0. 2008-06-18 20:31:51 +00:00
matthieu
08ba1c99bd Disconnect lbxproxy, xphelloworld, xplsprinters and xprehashprinterlist
from the build. Those clients are not useful anymore now that the
server side is not there anymore. ok krw@ mbalmer@ and others.
2008-06-18 20:19:53 +00:00
oga
6bc6a1ee97 Revert previous "fix" it introduces new issues of its own.
The problem that's causing us to lose windows is that rapid hiding and
unhiding causes a backlog of X events, so we lose track of client state,
and delete cc->pwin when we should not. A proper fix will arrive when it's been
worked out.
2008-06-18 19:09:12 +00:00
okan
5cf4e1c7ef missed one mouse function
noticed by oga
2008-06-17 23:46:49 +00:00
oga
81e6cb3e95 Ignore caps lock and numlock for keyboard bindings. The way Xlib makes
you do this is ugly. Also remove mod2 (numlock) and mod3 (odd) from the
list of keybinding modifiers. They don't make much sense here.

based on a heavily modified diff from Martynas.

ok okan.
2008-06-17 23:40:33 +00:00
matthieu
a107e63a20 Replace rsh with ssh in the extrace/merge example. Rsh is no more. 2008-06-17 21:34:31 +00:00
oga
812ce180c5 Just rework the mouse binding calculation on event to look like the
kbfunc one.  Makes the code a lot easier to read.

Fixes a bug i introduced in the last commit here.

ok okan.
2008-06-17 20:55:48 +00:00
oga
34c24fdb68 The mousebinding code missing a break once it had found the correct
binding, this expose another issue that's still being debugged.
Issue pointed out by Dan Harnett, thanks!

While i'm here KNF and rework the logic to not be ass-backwards.

ok okan.
2008-06-17 20:21:17 +00:00
mk
3d8c29aa2b Make this not crash when compiled with -g.
Found by myself, analysis by kurt@, fix by me with input from otto.

``Just get some fix in...'' deraadt
2008-06-16 19:09:48 +00:00
oga
4ef73665d3 Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.
makes the code a lot simpler. While here rearrange the font handling functions
to be less shit.

ok and help okan@.
2008-06-15 02:47:46 +00:00
okan
b3cbe6ba11 (mostly) proper xshape event support
ok oga@
2008-06-14 22:04:11 +00:00
okan
a880cefb2e unbreak 2008-06-14 21:59:09 +00:00
okan
b48fb0f64d slightly alter the semantics of config files:
- if no config file, continue silently and apply defaults
 - if config file, parse and move on
 - if config file specified but not found, error out

ok oga@
2008-06-14 21:51:00 +00:00
okan
4a6468a264 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
matthieu
2bcb8fed1a Update to xkbcomp 1.0.5 2008-06-14 17:11:32 +00:00
matthieu
c2c271a871 Update to xfsinfo 1.0.2 2008-06-14 16:49:28 +00:00
matthieu
a1c7582f93 config.h.in was renamed xfs-config.h.in. missed in previous commit.
noticed by claudio@.
2008-06-14 13:07:28 +00:00
matthieu
cfa38e1f98 Man page update for fixed font label display change. 2008-06-14 01:07:29 +00:00
matthieu
7f2bd19b4a When displaying a multi-lines label, switch to a fixed-width font
for 2nd and following lines, to make ascii art look correct.
ok deraadt@, grunk@.
2008-06-14 01:05:04 +00:00
okan
7a45a93574 finally document functions that can be bound, removing the need to have
name_to_kbfunc[] around.

feedback jmc@, ok oga@
2008-06-13 21:22:34 +00:00
matthieu
63286dc135 update to xfs 1.0.8.
(The multiple defined symbol problem is not fixed yet)
2008-06-13 21:00:35 +00:00
matthieu
fb9de713bd Update to xdpyinfo 1.0.3 + one local change: don't print (null)
from XF86VidModeGetMonitor().
2008-06-13 17:49:12 +00:00
matthieu
a6907fb0c2 update to sessreg 1.0.4 2008-06-13 15:43:03 +00:00
matthieu
3a5d11e108 Update to showfont 1.0.2 2008-06-13 05:01:00 +00:00
matthieu
f6553ec825 Update to rgb 1.0.3 2008-06-13 04:55:03 +00:00
oga
daf3b54725 Don't client_delete() on an Unmap event, only do that on a client delete event.
found by (among others) todd@ when you have a lot of clients and do something
that maps and umaps a lot of windows fast.

Debugged with aid of gdb, todd, okan and NULL pointers in a pizza place in
edmonton while waiting an inordinately long time for food.

ok okan@, todd@
2008-06-13 03:41:58 +00:00
matthieu
f275352e0c update to mkfontscale 1.0.5 2008-06-13 01:01:26 +00:00
matthieu
ab31903cb7 Update to fstobdf 1.0.3 2008-06-13 00:10:59 +00:00
matthieu
a22a0d05d6 Update to fslsfonts 1.0.2 2008-06-13 00:07:36 +00:00
matthieu
30017d821b Update to fonttosfnt version 1.0.4. 2008-06-13 00:04:06 +00:00
okan
7b8f1156d3 kill another long gone proto 2008-06-12 19:10:56 +00:00
okan
ef151e79af remove old (moved) code
ok oga@
2008-06-12 18:55:35 +00:00
okan
ad2ae8461f instead of forcing the ptr in the middle everytime, be more 'calm'; keep
the ptr still unless it moves out-of-bounds, then just follow the edge.

brought up by todd@

ok oga@
2008-06-12 18:32:06 +00:00
okan
94f0aa5a59 place the pointer in the middle of the window after resizing with grab,
just like keyboard resize.

from Edd Barrett

ok oga@
2008-06-12 05:10:24 +00:00
okan
84aeb967ba ignore if non-zero expose events, for we could be covered by multiple
windows; merely an optimization.

ok oga@
2008-06-12 05:01:13 +00:00
okan
0d911cac19 re-work client_placecalc()
- make sure new clients sit inside the current screen
- respect 'gap' placement on new clients

ok oga@
2008-06-12 04:59:51 +00:00
okan
45b2fad725 Enter -> Return, to be consistant and correct.
found the hard way by johan and discovered by oga.

"do it" oga@
2008-06-05 14:29:01 +00:00
okan
f42ad31e00 prevent trying to exec a null char; could potentially happen with a
canceled or empty searchstr.

ok oga@
2008-06-05 04:01:37 +00:00
okan
9005249c59 actually honor termpath and lockpath if specified in cwmrc.
"now" oga@
2008-06-05 00:07:05 +00:00
okan
2abd40cbdb "Meta is a perfectly well defined concept in X (The keys bound to the
Meta_L or Meta_R keysysm).  no need to redefine it roughly there" - matthieu@
2008-06-03 21:27:47 +00:00
okan
ddd8d269ff make sure to take bwdith into account when placing a new window.
ok oga@
2008-05-23 18:57:35 +00:00
oga
6d57649414 Grab the keyboard when we initialise the menu. This stops the keyboard
shortcut code stealing our events in some cases.

"put 'er in" okan@.
2008-05-23 18:48:57 +00:00
oga
bad8c87b4a Make menu_filter handle mouse movement too. This enables the keyboard
search dialogues to be manipulated with the mouse, too. It also allows
me to shrink the codebase further by killing grab_menu().

One known issue with highlighting the first entry in a search dialogue,
that'll be fixed soonish.

ok okan@, tested by Edd Barrett and todd@.
2008-05-21 14:11:19 +00:00
oga
ca512ce795 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
oga
f8b4088fad General cleanup.
ok okan@.
2008-05-19 18:53:09 +00:00
okan
88bce60b1c stop normalizing search input; searching and matching are still
case-insensitive.  since this was the only use of normalizing input,
simplify as well.

allows one to exec with mixed case unmatched commands.

"works for me" oga@
2008-05-19 18:07:53 +00:00
oga
e13d74cfcc Function prototypes should not have parameter names in them. These must
have been missed last time i knfed this.

ok okan.
2008-05-19 17:32:22 +00:00
okan
d07a7f737f client_cyclenext() -> client_cycle() since we now pass an arg.
removes a stray proto as well.

discussed with and ok oga@
2008-05-19 17:24:19 +00:00
oga
796006fd7f allow an autogroup value of 0 to mean no group. This means you can set
automatically "sticky" (in the traditional sense of the word) windows in
autogroup mode.

Based on an initial diff from Andrew Fresh, thanks!

ok okan@.
2008-05-19 17:13:55 +00:00
okan
7f3adeacc7 as done with cycle/rcycle, make prev/next group switching one kbfuncs
and use a flag; adjusted to match and rename to {r,}cycle.

"ok, since i came up with the same thing" oga@
2008-05-19 17:11:19 +00:00
oga
80fd601708 Use the XGrabKeyboard hack in for alt-tabbing as well. This stops the
mru getting the order messed up when gvim/xpdf et all steal key events.

While i'm here, change the logic in client_cyclenext() to use break instead
of goto, it's nicer that way.

Thirdly, instead of two different kbfuncs, just use the one and a flag.

"put your cycle diff in so I can pkg_delete gvim" okan@
2008-05-19 15:17:50 +00:00
okan
0a4376b166 finally implement keyboard binding for group toggling
idea for the
    "slightly-less-abhorrent-hack-but-a-hack-nonetheless-TM" from oga@

grab and ungrab the keyboard to get around some silly X apps that like
stealing events

ok oga@
2008-05-19 12:56:58 +00:00
okan
98aad18f7d send the correct x/y coordinates to XConfigureWindow()
fixes some windows that seem as if they don't fit; noticed by Edd Barrett.

ok oga@
2008-05-18 20:06:36 +00:00
okan
0e709156e6 remove extra calls to client_draw_border()
ok oga@
2008-05-18 20:00:16 +00:00
okan
8d2a0490e4 fix backwards logic in example; found by oga@ 2008-05-18 19:57:43 +00:00
oga
ca54149838 Fix two problems with conf_unbind():
1) it used TAILQ_FOREACH() when it's removing entrys from the list, this
   is bad.
2) We didn't free key, so there was a small memleak too.

also rework conf_bindname's logic slightly to be more simple.

ok okan@
2008-05-18 19:47:19 +00:00
oga
61bdc5d36a Kill conf_get_int(), it was a silly function anyway.
Since it's only used once just put the (simplified) logic into
conf_client() instead. This  means we can kill an enum and
CONF_IGNORECASE, too.

ok okan@
2008-05-18 19:43:50 +00:00
oga
86b3e4dc4d group_ctx->name is only used in this one function, and for now it
corresponds directly to the static list of group names. Just use the
static list and stop strdup()ing a new version for the context struct.
Since that never got freed this also fixes a small memleak.

Kill some unused variables while i'm here.

ok okan@
2008-05-18 19:38:18 +00:00
oga
e30f288bf4 When we're cleaning out the lists in parse_config and conf_clear it's a
lot simpler just to do while (entry = TAILQ_FIRST(head)) than to do a
for () over the whole lot. Simpler, shorter and probably faster.

ok okan@
2008-05-18 19:34:09 +00:00
okan
c3eca00a7c - re-order and mostly re-write cwmrc(5)
- merge example config file into cwmrc(5) and remove (little good in here)

feedback from jmc@ - thanks!

ok simon@
2008-05-18 19:33:36 +00:00
okan
662115e25e fix cwm's current XShape support from Edd Barrett -thanks.
XShape events should be handled at some point.

ok oga@
2008-05-17 03:59:54 +00:00
oga
4539521994 KNF, no binary change.
From Pierre Riteau. Thanks!
2008-05-15 22:18:00 +00:00
okan
6c44f202a4 tiny bit of knf
ok oga@
2008-05-15 21:56:21 +00:00
matthieu
c6cf53ff4a Explicitly disable rplay. Found by mbalmer@ 2008-05-11 20:36:28 +00:00
tobias
88f967a8bd Signal handler of SIGCHLD calls waitpid() which sets errno on error. To
avoid clubbering of errno in normal context, save_errno got introduced.

ok oga
2008-05-06 15:12:04 +00:00
oga
519744a58e Rework the alt-tabbing code to be a lot simpler.
Diff mostly from Edd Barrett, with some minor changes from me.
Unfortunately the issue where apps like gvim and xpdf are stealing
keyrelease events causing the ordering to be messed up, but this is a
lot better. A fix for the aforementioned issue shall be forthcoming,
once a good one's been found.

ok okan@, also tested by todd@
2008-05-01 18:01:13 +00:00
simon
73b49edae1 Allow slashes in unquoted strings.
From Pierre Riteau
Makes sense to oga@
2008-04-29 20:17:28 +00:00
okan
31b5fe3b59 nits from Pierre Riteau - thanks!
ok oga@
2008-04-28 01:27:46 +00:00
matthieu
a8dfa1fd5d Add 2 files added with 1.0.4. 2008-04-21 06:04:31 +00:00
matthieu
9dbb6c9bfd Update to xset 1.0.4 2008-04-20 16:47:32 +00:00
matthieu
25faa3f792 update to xrdb 1.0.5 2008-04-20 16:42:58 +00:00
matthieu
a99339125b Update to xprop 1.0.4 2008-04-20 16:36:07 +00:00
matthieu
b0446f754a Update to xkbcomp 1.0.4 2008-04-20 16:32:06 +00:00
matthieu
33acf34151 Update to xinit-1.0.8, while preserving local changes. 2008-04-20 13:46:02 +00:00
matthieu
e14d5aefcd Get rid of the Xwrapper hack. OpenBSD doesn't support XFree86 3.3.x anymore. 2008-04-20 13:25:46 +00:00
matthieu
4aab415a58 update to xev 1.0.3 2008-04-19 16:59:34 +00:00
matthieu
5e9eca7e93 update to xdm-1.1.7 (No changes on OpenBSD). 2008-04-19 16:54:56 +00:00
matthieu
40cc08d6c3 update to x11perf 1.5 2008-04-19 16:23:00 +00:00
matthieu
a993561bd4 update to twm 1.0.4 2008-04-19 15:43:39 +00:00
matthieu
6f491b67d8 Update to xrandr 1.2.3. 2008-04-19 14:40:52 +00:00
oga
eb613a1bb7 merge kbfunc_{ptrmove,client_{move,resize}} into one function that takes a flag,
this code was almost identical...

ok okan.
2008-04-16 13:47:29 +00:00
oga
fb651469ee remove infowin. It slipped out of the last commit, for some reason. 2008-04-16 13:40:34 +00:00
oga
f062e958e0 Replace a few leftover calls to strdup and calloc with xstrdup and xcalloc
respectively.

ok okan.
2008-04-16 13:38:09 +00:00
oga
9aedc9e805 Remove screen_infomsg(), nothing uses it.
ok okan.
2008-04-16 13:35:37 +00:00
oga
8a66857b72 kill an unused struct member.
ok okan
2008-04-16 13:33:26 +00:00
oga
8b3d596db5 make the argument parser for commands accept quoted strings, while i'm
there make u_spawn use exec_wm (renamed to u_exec) for it's execution to
remove duplicated code.

This means constructs like this work in .cwmrc:

bind CM-t "ssh -Y 192.168.1.2 \"xterm -e top\""

or alternatively:

bind CM-t "ssh -Y 192.168.1.2 'xterm -e top'"

"in it goes" okan@.
2008-04-15 21:20:56 +00:00
oga
5559ba08b3 Kill dirent_isdir() and dirent_islink() nothing used them since the new
parser went in.

ok okan.
2008-04-15 20:26:50 +00:00
oga
26beb05af2 hit it with the knf stick. 2008-04-15 20:24:41 +00:00
oga
a101e9a0c8 Add "gap" support to .cwmrc. The options put in here make gaps on the edge
of the screen where an application won't be {,vert}maximized over. used for
placing a statusbar or something like xclock.

Patch from Edd Barrett, with input from myself and okan. Thanks!

ok okan@.
2008-04-15 18:46:58 +00:00
okan
36cf099f9d - add vi keybindings to search
- allow for ctrl-h as well

discussion with and ok oga@
2008-04-15 18:33:13 +00:00
okan
e588092d97 malloc -> calloc
suggested by and ok oga@
2008-04-15 18:22:08 +00:00
matthieu
766b9c6928 regen 2008-04-12 17:57:53 +00:00
matthieu
fd01a78b07 mkfontscale 1.0.4 2008-04-12 17:52:43 +00:00
matthieu
58b18c30eb regen 2008-04-12 17:51:44 +00:00
matthieu
b8c22531e6 mkfontdir 1.0.4 2008-04-12 17:49:58 +00:00
okan
3174a0bb47 remove alt-tab menu
discussed with a few

ok oga@
2008-04-09 18:10:47 +00:00
oga
edd5ee518b No cookie for okan.
fix use-after-free that broke exec's path getting stuff.

``paths'' isn't used anymore, but pointers to within that array are still
used in the next loop. delay freeing it until after then.
2008-04-08 17:38:27 +00:00
okan
fdb2248a19 better 'quit' keybinding default (CMS-q)
feedback from oga@ and simon@

ok oga@ simon@
2008-04-08 14:12:28 +00:00
simon
2fc4faf28a Make _xev_quit "volatile sig_atomic_t" for proper correctness.
Noticed by oga@, thanks!
2008-04-08 00:09:50 +00:00
simon
8797c69ac9 Add quit function, bind it per default to CM-q and change exec_wm
binding to CM-w.

Inital diff from Gleydson Soares
Feedback from oga@ and okan@

ok oga@
2008-04-07 23:47:09 +00:00
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