summaryrefslogtreecommitdiff
path: root/app/cwm
AgeCommit message (Collapse)Author
2009-01-08If the mousebutton is unknown when we go to grab, don't just print aOwain Ainsworth
warning, but also skip the XGrabButton call. Noticed by code inspection by okan@, but we agreed my fix was cleaner. ok okan.
2009-01-06remove "search should ignore the current window" from list, for theOkan Demirmen
current behavior is better... ok oga@
2009-01-06HasXinerama is an intOkan Demirmen
ok oga@
2009-01-06remove unused codeOkan Demirmen
ok oga@
2008-12-04Kill obviously dead variable.Owain Ainsworth
2008-12-03Don't ignore sigpipe. Everytime cwm forks it execs anyway (so itOwain Ainsworth
shouldn't get that signal), and this causes problems for our children since they inherit the ignore. Pointed out by Jacek Masiulani in pr 6010; thanks!
2008-09-29Xinerama and XRandR dual head support for cwm(1). Now we detect the xrandrOwain Ainsworth
reconfiguration events and change our sizes depending on that. We also detect the xinerama screens for maximize, vertmaximize and initial window placement. This could be improved by automatically resizing maximized windows when the screen resolution changes and by moving windows that would be hidden into visible space. Said changes will come shortly. Tested by many. matthieu@ didn't oppose.
2008-09-22.Bl needs a matching .El. From Martin Toft a while ago, thanks!Owain Ainsworth
2008-09-22Improve wording of the ``ignore'' directive. From Martin Toft a whileOwain Ainsworth
ago, ok okan@ from similar amount of time ago.
2008-09-22*sigh* Revert the diff that wasn't meant to go in yet.Owain Ainsworth
note to self: When you mean to type cvs commit search.c, don't forget the filename.
2008-09-22Display the current window title not a previous one in the case ofOwain Ainsworth
``show all'' in the window search dialogue. Noticed and diff from Tim van der Molen, thanks!
2008-09-03Keep the exec menu entries sorted.Can Erkin Acar
Go for it okan@
2008-07-22fix the froggy problem.Owain Ainsworth
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-22We've been handling grabbing wrong all this time (noticed at c2k8).Owain Ainsworth
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-22split x_setup() into two. dpy_init() for setting up the display andOwain Ainsworth
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-22Add xu_key_ungrab() and a mirror to xu_key_ungrab(). a couple of changesOwain Ainsworth
that are coming up depend on it. ok okan.
2008-07-22Kill screen_init(). it's been stubbed out for a while now. I don't envision itOwain Ainsworth
coming back in it's current form. ok okan@.
2008-07-22kill another leftover prototype.Owain Ainsworth
ok okan@
2008-07-18Put back the initialisation of gc in group_cycle. No cookie for okan.Owain Ainsworth
Reported by Dan Harnett, thanks!
2008-07-15move client_vertmaximize to a more sensible location, purely for readability.Okan Demirmen
"don't mind at all" oga@
2008-07-15save an X call and use what we already have stored.Okan Demirmen
ok oga@
2008-07-15don't compensate for bwidth twice.Okan Demirmen
ok oga@
2008-07-11Nm makes more sense than Xr, from Pierre Riteau - thanks!Okan Demirmen
2008-07-11Change "a window" to "current window" in documentation. it's more correct.Owain Ainsworth
While i'm here: Capital letter and full stop in descriptions in cwmrc.5 "looks good - do it" okan@.
2008-07-11add Xr for cwm(1)Okan Demirmen
2008-07-11no more hidden (and mysterious) config reloads and allow binding a keyOkan Demirmen
to a config reload; CMS-r by default. ok oga@
2008-07-11replace snprintf with strlcpyOkan Demirmen
ok oga@
2008-07-11we already have ymax, so use it instead of asking X for it again.Okan Demirmen
ok oga@
2008-07-11spacing, declaration lineup to be consistent throughout cwm,Okan Demirmen
readability, and a bit of knf. ok oga@
2008-06-30only cycle through visible *and* non-ignored windows.Okan Demirmen
ok oga@
2008-06-25Allow a mouse binding to hide a window, and add a default keybinding for CMS-M3,Owain Ainsworth
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-25Support mod4 (windows key) in mouse bindings too.Owain Ainsworth
2008-06-25Support shift in mouse bindings. There's really no reason not to.Owain Ainsworth
tested by johan@ and todd@.
2008-06-25Actually grab the correct mouse buttons for a window, instead of doing theOwain Ainsworth
old hardcoded ones (which now can be wrong). tested by todd@ and johan@.
2008-06-25Sort flags.Owain Ainsworth
From Pierre Riteau, thanks! ok okan@.
2008-06-25Stop keyboard move moving the window utterly off the screen. If thatOwain Ainsworth
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-19Don't link "-lX11 -lXau -lXdmcp" twice.Owain Ainsworth
From Martin Toft, thanks!
2008-06-18No need to map/unmap the window on hide/show since we already do theOwain Ainsworth
same to its parent. "makes sense" okan@.
2008-06-18Revert previous "fix" it introduces new issues of its own.Owain Ainsworth
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-17missed one mouse functionOkan Demirmen
noticed by oga
2008-06-17Ignore caps lock and numlock for keyboard bindings. The way Xlib makesOwain Ainsworth
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 theOwain Ainsworth
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 correctOwain Ainsworth
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-16Make this not crash when compiled with -g.Michael Knudsen
Found by myself, analysis by kurt@, fix by me with input from otto. ``Just get some fix in...'' deraadt
2008-06-15Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.Owain Ainsworth
makes the code a lot simpler. While here rearrange the font handling functions to be less shit. ok and help okan@.
2008-06-14(mostly) proper xshape event supportOkan Demirmen
ok oga@
2008-06-14unbreakOkan Demirmen
2008-06-14slightly alter the semantics of config files:Okan Demirmen
- 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-14confable menu and window mouse bindings from rivo nurges (thanks!) withOkan Demirmen
some minor fixups, man page bits and knf. ok oga@
2008-06-13finally document functions that can be bound, removing the need to haveOkan Demirmen
name_to_kbfunc[] around. feedback jmc@, ok oga@