Commit Graph

1339 Commits

Author SHA1 Message Date
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
9b6727b74a provide a minimal config.site pre-built configure cache, to
protect xenocara builds from picking stuff installed by ports.
For now only paths to different programs are provided, avoiding the
use of bison instead of yacc. feedback from espie@.
2008-05-11 20:58:10 +00:00
matthieu
4ec03d3eda sync 2008-05-11 20:39:36 +00:00
matthieu
c6cf53ff4a Explicitly disable rplay. Found by mbalmer@ 2008-05-11 20:36:28 +00:00
ajacoutot
790fc260ee - fix an infinite loop by ensuring that realInputProc is never
overwritten with the enqueueInputProc (from upstream git)
cf. https://bugs.freedesktop.org/show_bug.cgi?id=13511

This should fix hangs people were seeing with icewm, cwm and most
probably other WM under some circumstances.

ok matthieu@
2008-05-07 06:07:09 +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
todd
bc3a587b1e sync 2008-05-05 17:54:25 +00:00
maja
d802806210 Convert some wscons keyboard layouts to correct X names. -moj
ok @johan @oga and @matthieu
2008-05-04 22:45:35 +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
todd
2301a6b3e9 sync 2008-05-01 00:52:43 +00:00
todd
759b575d23 sync 2008-04-30 04:45:21 +00:00
simon
73b49edae1 Allow slashes in unquoted strings.
From Pierre Riteau
Makes sense to oga@
2008-04-29 20:17:28 +00:00
oga
5a9e2c9770 Enable building the dri modules and mesa drivers by default on i386 and
amd64.

ok matthieu@ and todd@

This has been in snaps for over a week, no complaints.
2008-04-29 18:59:05 +00:00
okan
31b5fe3b59 nits from Pierre Riteau - thanks!
ok oga@
2008-04-28 01:27:46 +00:00
matthieu
ca3b6e9d36 Mesa3d and xterm got new releases. 2008-04-21 19:23:49 +00:00
matthieu
a8dfa1fd5d Add 2 files added with 1.0.4. 2008-04-21 06:04:31 +00:00
matthieu
cd2e1b318d If the wskbd map is 'user' don't try to set the xkb layout.
Tested by okan@ ok oga@.
2008-04-20 19:28:14 +00:00
matthieu
1ad4dd488f This weekend updates 2008-04-20 16:48:10 +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
73d1e76463 Update SiS driver to 0.10
Tested by todd.
ok Matthieu.
2008-04-19 14:03:12 +00:00