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
canacar
a0082c58a4
Keep the exec menu entries sorted.
...
Go for it okan@
2008-09-03 04:39:12 +00:00
oga
04441482d4
fix the froggy problem.
...
Implement a handler for the MappingEvent, meaning that the keymap has changed.
When this happens, ungrab all bindings, update the map, and regrab.
Fixes the problem where some keybindings wouldn't work under non us or
uk keymaps (especially the .fr map, it seems). Issue noticed by
ajacoutot@, ratchov@, and a few people on misc. Based on an initial diff
from ratchov@.
ok okan.
2008-07-22 21:01:54 +00:00
oga
0df9e0673c
We've been handling grabbing wrong all this time (noticed at c2k8).
...
add conf_grab() and conf_ungrab, and use them in the keybinding manipulation
functions to {,un}grab the binding for all screens we have defined.
the lovely little ordering problem comes in here, since when we parse
the config initially Screenq is empty, so regrab after we fill the
queue, hopefully later reordering will remove this little need and there
will be much rejoicing.
ok okan.
2008-07-22 20:51:54 +00:00
oga
436a9e5c54
split x_setup() into two. dpy_init() for setting up the display and
...
checking the X config, and x_setup to set up the screens.
There's an ordering problem that means that some of this init needs to
come after the config is parsed, the rest should ideally happen before
though. This is a rough split, it will be refined later. Again, needed
for an upcoming change.
ok okan.
2008-07-22 20:42:24 +00:00
oga
20052e0248
Add xu_key_ungrab() and a mirror to xu_key_ungrab(). a couple of changes
...
that are coming up depend on it.
ok okan.
2008-07-22 20:26:12 +00:00
oga
13b640ea29
Kill screen_init(). it's been stubbed out for a while now. I don't envision it
...
coming back in it's current form.
ok okan@.
2008-07-22 19:54:57 +00:00
oga
2f8639d37b
kill another leftover prototype.
...
ok okan@
2008-07-22 19:52:54 +00:00
oga
556f7a0871
Put back the initialisation of gc in group_cycle. No cookie for okan.
...
Reported by Dan Harnett, thanks!
2008-07-18 15:40:52 +00:00
okan
2798cdc9a7
move client_vertmaximize to a more sensible location, purely for readability.
...
"don't mind at all" oga@
2008-07-15 22:12:09 +00:00
okan
8afabd6c55
save an X call and use what we already have stored.
...
ok oga@
2008-07-15 22:06:48 +00:00
okan
96f03c8cbc
don't compensate for bwidth twice.
...
ok oga@
2008-07-15 13:52:02 +00:00
okan
6d268bfa4a
Nm makes more sense than Xr, from Pierre Riteau - thanks!
2008-07-11 22:43:44 +00:00
oga
b6dab5ccf3
Change "a window" to "current window" in documentation. it's more correct.
...
While i'm here: Capital letter and full stop in descriptions in cwmrc.5
"looks good - do it" okan@.
2008-07-11 15:42:29 +00:00
okan
a556d3fa1f
add Xr for cwm(1)
2008-07-11 15:20:04 +00:00
okan
6ea4b1bd3b
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
8be175b175
replace snprintf with strlcpy
...
ok oga@
2008-07-11 14:24:34 +00:00
okan
85e6c61360
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
b23fad3987
spacing, declaration lineup to be consistent throughout cwm,
...
readability, and a bit of knf.
ok oga@
2008-07-11 14:21:28 +00:00
okan
734f45ab4b
only cycle through visible *and* non-ignored windows.
...
ok oga@
2008-06-30 17:52:37 +00:00
oga
993fd4311f
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
a6ec6cd9e9
Support mod4 (windows key) in mouse bindings too.
2008-06-25 22:40:27 +00:00
oga
05b17bf803
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
2dfd021f8b
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
77058c59e2
Sort flags.
...
From Pierre Riteau, thanks!
ok okan@.
2008-06-25 01:09:09 +00:00
oga
187e7dfad2
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
oga
6f1ed5bfe3
Don't link "-lX11 -lXau -lXdmcp" twice.
...
From Martin Toft, thanks!
2008-06-19 02:21:30 +00:00
oga
e21e7680e4
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
oga
2bddbe12f4
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
0ba60f0b94
missed one mouse function
...
noticed by oga
2008-06-17 23:46:49 +00:00
oga
4f2d4724c9
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
oga
19ba704ee3
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
9657664c7b
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
867652c484
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
07cd0b1ac5
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
96d7310b4a
(mostly) proper xshape event support
...
ok oga@
2008-06-14 22:04:11 +00:00
okan
160228210b
unbreak
2008-06-14 21:59:09 +00:00
okan
9d9c61b8f6
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
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
okan
b4ae492b7b
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
oga
01eecac5d4
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
okan
077173527b
kill another long gone proto
2008-06-12 19:10:56 +00:00
okan
ff9e573e1d
remove old (moved) code
...
ok oga@
2008-06-12 18:55:35 +00:00
okan
198bb381a9
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
6f1f3592d4
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
78c8bf08cb
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
4377b5ac3f
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
9037043088
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
610e8e83ac
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