IABSD.fr/xenocara/app

Branch :


Log

Author Commit Date CI Message
5d526ad5 2008-07-22 21:01:54 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.
cdb45f00 2008-07-22 20:51:54 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.
c462c7e1 2008-07-22 20:42:24 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.
893d8d3d 2008-07-22 20:26:12 Add xu_key_ungrab() and a mirror to xu_key_ungrab(). a couple of changes that are coming up depend on it. ok okan.
91dbf082 2008-07-22 19:54:57 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@.
ea5ee72e 2008-07-22 19:52:54 kill another leftover prototype. ok okan@
f4cf1775 2008-07-20 06:47:48 Formatting fix. From Tim van der Molden.
b4d2f0f9 2008-07-18 15:40:52 Put back the initialisation of gc in group_cycle. No cookie for okan. Reported by Dan Harnett, thanks!
4c22c742 2008-07-16 12:43:05 add cwm to exec/restart menu ok matthieu@ oga@
45606f7a 2008-07-15 22:12:09 move client_vertmaximize to a more sensible location, purely for readability. "don't mind at all" oga@
d995c0ea 2008-07-15 22:06:48 save an X call and use what we already have stored. ok oga@
37abf724 2008-07-15 13:52:02 don't compensate for bwidth twice. ok oga@
53b397c1 2008-07-11 22:43:44 Nm makes more sense than Xr, from Pierre Riteau - thanks!
36326e6e 2008-07-11 15:42:29 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@.
ee7ecdb4 2008-07-11 15:20:04 add Xr for cwm(1)
d9407b88 2008-07-11 15:18:29 no more hidden (and mysterious) config reloads and allow binding a key to a config reload; CMS-r by default. ok oga@
2e276584 2008-07-11 14:24:34 replace snprintf with strlcpy ok oga@
de181a1c 2008-07-11 14:23:30 we already have ymax, so use it instead of asking X for it again. ok oga@
cfb9c394 2008-07-11 14:21:28 spacing, declaration lineup to be consistent throughout cwm, readability, and a bit of knf. ok oga@
c727b6dd 2008-07-02 02:29:59 puffy 4.4
9280b8fb 2008-06-30 17:52:37 only cycle through visible *and* non-ignored windows. ok oga@
ff24dcbd 2008-06-25 22:44:42 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.
553a7ea5 2008-06-25 22:40:27 Support mod4 (windows key) in mouse bindings too.
ff29a8e7 2008-06-25 22:38:36 Support shift in mouse bindings. There's really no reason not to. tested by johan@ and todd@.
5c700f86 2008-06-25 22:37:29 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@.
7d5d3307 2008-06-25 01:09:09 Sort flags. From Pierre Riteau, thanks! ok okan@.
6963c8bb 2008-06-25 00:52:47 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@.
932e098f 2008-06-19 21:58:47 regen
13609875 2008-06-19 21:58:14 - Don't depend on installed lbxproxy. - Comment out the lbxproxy config in sample configuration file. problem noticed by naddy@
cb1f8b37 2008-06-19 02:21:30 Don't link "-lX11 -lXau -lXdmcp" twice. From Martin Toft, thanks!
2ece6ad4 2008-06-18 20:42:29 No need to map/unmap the window on hide/show since we already do the same to its parent. "makes sense" okan@.
2a567d88 2008-06-18 20:33:15 Tis file is no longer in xinit 1.1.0.
1420b924 2008-06-18 20:31:51 update to xinit 1.1.0.
08ba1c99 2008-06-18 20:19:53 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.
6bc6a1ee 2008-06-18 19:09:12 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.
5cf4e1c7 2008-06-17 23:46:49 missed one mouse function noticed by oga
81e6cb3e 2008-06-17 23:40:33 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.
a107e63a 2008-06-17 21:34:31 Replace rsh with ssh in the extrace/merge example. Rsh is no more.
812ce180 2008-06-17 20:55:48 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.
34c24fdb 2008-06-17 20:21:17 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.
3d8c29aa 2008-06-16 19:09:48 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
4ef73665 2008-06-15 02:47:46 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@.
b3cbe6ba 2008-06-14 22:04:11 (mostly) proper xshape event support ok oga@
a880cefb 2008-06-14 21:59:09 unbreak
b48fb0f6 2008-06-14 21:51:00 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@
4a6468a2 2008-06-14 21:48:54 confable menu and window mouse bindings from rivo nurges (thanks!) with some minor fixups, man page bits and knf. ok oga@
2bcb8fed 2008-06-14 17:11:32 Update to xkbcomp 1.0.5
c2c271a8 2008-06-14 16:49:28 Update to xfsinfo 1.0.2
a1c7582f 2008-06-14 13:07:28 config.h.in was renamed xfs-config.h.in. missed in previous commit. noticed by claudio@.
cfa38e1f 2008-06-14 01:07:29 Man page update for fixed font label display change.
7f2bd19b 2008-06-14 01:05:04 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@.
7a45a935 2008-06-13 21:22:34 finally document functions that can be bound, removing the need to have name_to_kbfunc[] around. feedback jmc@, ok oga@
63286dc1 2008-06-13 21:00:35 update to xfs 1.0.8. (The multiple defined symbol problem is not fixed yet)
fb9de713 2008-06-13 17:49:12 Update to xdpyinfo 1.0.3 + one local change: don't print (null) from XF86VidModeGetMonitor().
a6907fb0 2008-06-13 15:43:03 update to sessreg 1.0.4
3a5d11e1 2008-06-13 05:01:00 Update to showfont 1.0.2
f6553ec8 2008-06-13 04:55:03 Update to rgb 1.0.3
daf3b547 2008-06-13 03:41:58 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@
f275352e 2008-06-13 01:01:26 update to mkfontscale 1.0.5
ab31903c 2008-06-13 00:10:59 Update to fstobdf 1.0.3
a22a0d05 2008-06-13 00:07:36 Update to fslsfonts 1.0.2
30017d82 2008-06-13 00:04:06 Update to fonttosfnt version 1.0.4.
7b8f1156 2008-06-12 19:10:56 kill another long gone proto
ef151e79 2008-06-12 18:55:35 remove old (moved) code ok oga@
ad2ae846 2008-06-12 18:32:06 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@
94f0aa5a 2008-06-12 05:10:24 place the pointer in the middle of the window after resizing with grab, just like keyboard resize. from Edd Barrett ok oga@
84aeb967 2008-06-12 05:01:13 ignore if non-zero expose events, for we could be covered by multiple windows; merely an optimization. ok oga@
0d911cac 2008-06-12 04:59:51 re-work client_placecalc() - make sure new clients sit inside the current screen - respect 'gap' placement on new clients ok oga@
45b2fad7 2008-06-05 14:29:01 Enter -> Return, to be consistant and correct. found the hard way by johan and discovered by oga. "do it" oga@
f42ad31e 2008-06-05 04:01:37 prevent trying to exec a null char; could potentially happen with a canceled or empty searchstr. ok oga@
9005249c 2008-06-05 00:07:05 actually honor termpath and lockpath if specified in cwmrc. "now" oga@
2abd40cb 2008-06-03 21:27:47 "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@
ddd8d269 2008-05-23 18:57:35 make sure to take bwdith into account when placing a new window. ok oga@
6d576494 2008-05-23 18:48:57 Grab the keyboard when we initialise the menu. This stops the keyboard shortcut code stealing our events in some cases. "put 'er in" okan@.
bad8c87b 2008-05-21 14:11:19 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@.
ca512ce7 2008-05-20 14:50:51 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@.
f8b4088f 2008-05-19 18:53:09 General cleanup. ok okan@.
88bce60b 2008-05-19 18:07:53 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@
e13d74cf 2008-05-19 17:32:22 Function prototypes should not have parameter names in them. These must have been missed last time i knfed this. ok okan.
d07a7f73 2008-05-19 17:24:19 client_cyclenext() -> client_cycle() since we now pass an arg. removes a stray proto as well. discussed with and ok oga@
796006fd 2008-05-19 17:13:55 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@.
7f3adeac 2008-05-19 17:11:19 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@
80fd6017 2008-05-19 15:17:50 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@
0a4376b1 2008-05-19 12:56:58 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@
98aad18f 2008-05-18 20:06:36 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@
0e709156 2008-05-18 20:00:16 remove extra calls to client_draw_border() ok oga@
8d2a0490 2008-05-18 19:57:43 fix backwards logic in example; found by oga@
ca541498 2008-05-18 19:47:19 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@
61bdc5d3 2008-05-18 19:43:50 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@
86b3e4dc 2008-05-18 19:38:18 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@
e30f288b 2008-05-18 19:34:09 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@
c3eca00a 2008-05-18 19:33:36 - 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@
662115e2 2008-05-17 03:59:54 fix cwm's current XShape support from Edd Barrett -thanks. XShape events should be handled at some point. ok oga@
45395219 2008-05-15 22:18:00 KNF, no binary change. From Pierre Riteau. Thanks!
6c44f202 2008-05-15 21:56:21 tiny bit of knf ok oga@
c6cf53ff 2008-05-11 20:36:28 Explicitly disable rplay. Found by mbalmer@
88f967a8 2008-05-06 15:12:04 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
519744a5 2008-05-01 18:01:13 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@
73b49eda 2008-04-29 20:17:28 Allow slashes in unquoted strings. From Pierre Riteau Makes sense to oga@
31b5fe3b 2008-04-28 01:27:46 nits from Pierre Riteau - thanks! ok oga@