aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c (unfollow)
Commit message (Collapse)AuthorLines
2008-06-17Ignore caps lock and numlock for keyboard bindings. The way Xlib makesoga-1/+7
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-17Just rework the mouse binding calculation on event to look like theoga-16/+14
kbfunc one. Makes the code a lot easier to read. Fixes a bug i introduced in the last commit here. ok okan.
2008-06-17The mousebinding code missing a break once it had found the correctoga-17/+18
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-14(mostly) proper xshape event supportokan-4/+17
ok oga@
2008-06-14confable menu and window mouse bindings from rivo nurges (thanks!) withokan-97/+14
some minor fixups, man page bits and knf. ok oga@
2008-06-13Don't client_delete() on an Unmap event, only do that on a client delete event.oga-15/+3
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-12ignore if non-zero expose events, for we could be covered by multipleokan-2/+2
windows; merely an optimization. ok oga@
2008-05-21Make menu_filter handle mouse movement too. This enables the keyboardoga-2/+2
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-19finally implement keyboard binding for group togglingokan-1/+7
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-18send the correct x/y coordinates to XConfigureWindow()okan-3/+3
fixes some windows that seem as if they don't fit; noticed by Edd Barrett. ok oga@
2008-05-15KNF, no binary change.oga-3/+3
From Pierre Riteau. Thanks!
2008-04-16Remove screen_infomsg(), nothing uses it.oga-2/+1
ok okan.
2008-04-15hit it with the knf stick.oga-21/+20
2008-04-08Make _xev_quit "volatile sig_atomic_t" for proper correctness.simon-2/+2
Noticed by oga@, thanks!
2008-04-07Add quit function, bind it per default to CM-q and change exec_wmsimon-2/+3
binding to CM-w. Inital diff from Gleydson Soares Feedback from oga@ and okan@ ok oga@
2008-03-23Replace the symlink configuration scheme with a simple yacc parser assimon-5/+2
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-22Rip out, burn, and dance around the grave of group-edit mode.oga-17/+5
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-22Remove a bunch of unused variables and incorrect comments.oga-2/+2
"ok with me" okan@.
2008-02-20Typo: s/supression/suppressionoga-2/+2
from Pierre Riteau, thanks!
2008-01-16huge amount of cleanup and dead code removal.oga-3/+1
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-11- Remove the "all rights reserved" tag at the top of most of the sourceoga-2/+13
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@
2007-05-28convert globals from G_foo to Foo, as per TODO.jasper-22/+22
"looks good" pedro@, ok matthieu@