Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 6e4f4540 | 2009-09-05 14:10:11 | style ok oga | ||
| c3064dbf | 2009-08-27 01:38:08 | unroll the CCTOSC macro; from Thomas Pfaff ok oga@ | ||
| 2f17ef27 | 2009-08-25 12:05:11 | static; ok oga@ | ||
| 1facf8e1 | 2009-08-25 02:02:59 | we are not doing access control here, so replace the "check if file is executable" goo with access(2). originally from jacekm@ long time ago. "i can live with that" oga@ | ||
| 1a74c54f | 2009-08-25 01:44:39 | Reduce duplciation of code for checking modifiers in key/mouse bindings. shaves a bunch of bytes. ok okan@ | ||
| 9924c77a | 2009-08-25 01:42:05 | Instead of calling conf_bind*() 50 gazillion times in a row, store an array with all the parameters in and just loop over that to setup the default keybindings - it's so much easier to read. okan@ "love love love"ed this | ||
| 78deb6c3 | 2009-08-25 01:32:40 | Instead of messing around everytime we do a resize, just clamp the resize increments to a minimum of one, and use it unconditionally. "you've convinced me, do it!" okan@ | ||
| 30e985c9 | 2009-08-25 01:26:09 | unroll macro; ok oga@ | ||
| 081d2dea | 2009-08-24 23:54:41 | Add a keybinding to allow horizontal maximisation of a window (CMS-enter). based on a diff by Thomas Pfaff; thanks! ok okan@ | ||
| 5111e273 | 2009-08-24 23:49:04 | bring together gathering, calculating and applying of size hints; additionally, respect aspect ratio hints. ok oga@ | ||
| 67c21c1d | 2009-08-24 21:22:48 | Instead of having a function that just calls TAILQ_INIT on a global, use TAILQ_HEAD_INITIALIZER() and drop the function. ok okan@ | ||
| 5407ee56 | 2009-08-24 17:04:39 | instead of checking for flags in the client context, then removing them. e.g.: if (flags & flags_we_care_about) flags &= ~(flags_we_care_about); just whack the flags unconditionally, it's simpler. okan@ agrees. | ||
| a75b7493 | 2009-08-08 17:27:51 | remove unnecessary Ar macros ok jmc@ | ||
| fb65a7fc | 2009-08-08 00:25:52 | remove unnecessary Dq macro; based on a diff from Martin Toft feedback and ok jmc@, martynas@ | ||
| 160be1ef | 2009-07-19 08:12:09 | Initialize ed.used_stdout at the beginning of do_extract() to avoid reading uninitialized memory later. Reported by Philip Guenther. Thanks. | ||
| 7230692a | 2009-06-26 12:45:12 | use fnmatch to glob the entries in the exec menu. allows shell globbing constructs such as *ctl, etc in the exec menu (m-? by default). Adapted from a diff from Thomas Pfaff, okan@ got almost the same diff as me when reworking it, and oked this one. | ||
| c4dd635c | 2009-06-26 12:33:59 | puffy 4.6 | ||
| d893a97d | 2009-06-26 12:21:58 | static local functions and data; almost identical diff from Thomas Pfaff ok oga@ | ||
| 28840135 | 2009-06-23 21:52:38 | tidy up startup/init routines ok oga@ | ||
| e61fd043 | 2009-06-20 00:55:41 | compact a bit by condensing a few if-else's; from Thomas Pfaff "go on then" oga@ | ||
| a7dfb91b | 2009-06-20 00:22:39 | unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over the place anyway, this makes things a bit more consistent; from Thomas Pfaff ok oga@ | ||
| 0230e268 | 2009-06-20 00:19:56 | spacing | ||
| 9bc8348d | 2009-06-19 10:43:49 | ``exec'' and ``ssh'' are lowercase. ok martynas@ | ||
| 2de9f26c | 2009-06-18 20:44:40 | items on the first list should have full stops too. ok martynas@ | ||
| b0a20e65 | 2009-06-18 20:24:54 | the on-line manual should use the same notation for key bindings as the configuration file, this way writing configuration files is easier; add a few missing interactive command (.Ic) macros to key bindings; slightly improve spacing in the lists; other tweaks. ok martynas@ | ||
| 1183bd53 | 2009-06-17 13:08:37 | remove unnecessary casts; from Thomas Pfaff ok oga@ | ||
| 89d86516 | 2009-06-17 12:45:01 | re-factor parts of mouse move/resize bit to shrink and make more readable; no behavior change ok oga@ | ||
| 96b7d95a | 2009-06-17 12:30:17 | move like defines to a central, logical location; no binary change. aok oga@ | ||
| 17c4b628 | 2009-06-06 23:33:20 | typo | ||
| 1c68deb7 | 2009-05-31 16:22:34 | workaround for a problem that appeared with xterm 243 on arm cpus. It dumps core in VTInitialize() if charproc.c is compiled with -O2. The problem is in the lines 5610 to 5614 of this file, which were added by xterm 243, but I can't see an obvious problem here. | ||
| f18194f3 | 2009-05-30 00:30:27 | 'no' is the answer to the comment question: cc->name can't be NULL at this point due to client_setname()'s work; remove this check. ok oga@ | ||
| 9e51da2d | 2009-05-30 00:30:17 | re-order a bit for readability. "if it makes you happy" oga@ | ||
| 56f901ac | 2009-05-30 00:29:08 | revert the 1.4 change - causes a double free noticed by grange@ a while ago while using kazehakase (or clients that don't set a name). ok oga@ | ||
| 01c9bf9a | 2009-05-19 12:49:37 | In movetogroup, check the window's current group and skip client_hide() if it's the same as the active group. Was in my original movetogroup diff, but it got simplified a little too far. ok oga@ | ||
| 224dd377 | 2009-05-18 20:50:15 | update to xinput 1.4.2 | ||
| 403de064 | 2009-05-18 00:23:35 | nuke the leading underscore notation for local static functions - there are far better ways to know. "go for it" oga@ | ||
| 099e0eb7 | 2009-05-18 00:17:46 | oops, we appear to have grown an extra prototype for group_only(), get the secateurs out. | ||
| 01972f31 | 2009-05-18 00:14:19 | Rip out the event layer and just use a static array of callbacks like every other window manager since twm. The event layer is very nice, very shiny, very flexible, and very much underutilised. We don't need any of those shiny features so it's probably better to earn ourselves 1k smaller text size instead. ok todd@, okan@ | ||
| 60e9431c | 2009-05-17 23:54:17 | redraw all borders at once on reload "sure" oga@ | ||
| d3c904a3 | 2009-05-17 23:40:57 | a long time coming - re-work the way we deal with colors: since we're using Xft(3), use it to select the font color as well instead of trying to build one; properly allocate and free colors at-will, e.g. we now have configurable colors. feedback and ok's todd@ and oga@ | ||
| 1a919242 | 2009-05-17 23:37:52 | minor bit of knf, just to be consistent; oga@ doesn't mind that much | ||
| b25495eb | 2009-05-17 22:48:47 | unbreak | ||
| 5dd486de | 2009-05-17 17:04:59 | add a "movetogroup" function, which hides the current window from display and moves it to another group. useful with the recently added "grouponly" function, giving the ability to use groups as simple virtual desktops (similar to e.g. xmonad, dwm and scrotwm). this doesn't have default keyboard bindings; cwmrc(5) now shows how you could use these functions (use M-1...9 for grouponly1...9 and MS-1...9 for movetogroup1...9 to emulate the default dwm bindings). ok oga@ | ||
| 662b00c1 | 2009-05-17 16:51:43 | redraw the border when unhiding a client window. fixes the situation where you change to a different group and the mouse isn't over a window; previously the border of the previously active window was highlighted but it didn't actually have focus. reads ok to oga@. | ||
| 11fa2e97 | 2009-05-14 16:29:58 | add missing prototype. | ||
| 873b5b8e | 2009-05-14 16:24:04 | Add a new command (currently no default keybindings for it), grouponly[1-9]. This works like the group select binding, but hides all other groups. So, the people who've been complaining that they don't get "virtual desktops" in cwm may want to try this out in cwmrc (from memory, untested): --- #cwmrc # add new windows to the current group set sticky # automatically sticky windows. xclock for now. # to make more windows sticky use group_toggle to unset their group autogroup 0 xclock # make the group selection keys hide other groups, emulate virtual desktops bind CM-1 grouponly1 bind CM-2 grouponly2 bind CM-3 grouponly3 bind CM-4 grouponly4 bind CM-5 grouponly5 bind CM-6 grouponly6 bind CM-7 grouponly7 bind CM-8 grouponly8 bind CM-9 grouponly9 --- mostly by sthen, tweaks from me. ok todd@, "if it works i'm ok with it" okan@, ok sthen@ | ||
| 0eea198f | 2009-05-04 22:01:35 | right and middle mouse buttons swapped; from rgouveia@cosmico.net | ||
| fcc63352 | 2009-05-04 19:13:33 | no need to use the global here. ok todd@ oga@ | ||
| d997637f | 2009-05-04 18:05:21 | properly document menu_unhide; tweak a patch from rgouveia@cosmico.net - thanks. ok oga@ | ||
| 033e24f2 | 2009-05-03 13:17:37 | update to xinit 1.1.1 | ||
| d95aa59b | 2009-05-02 19:18:13 | fix usage(). this bit me when I actually tried to use it. Now it matches the manpage (which is correct). ok matthieu@ | ||
| 03806ef2 | 2009-05-02 15:24:13 | update to xinput 1.4.1 | ||
| eed3adbb | 2009-05-02 15:21:24 | update to xrandr 1.3.0 | ||
| ce9db1f7 | 2009-05-01 17:50:20 | fix the other 50% of xrandr cases; reported by sthen@ "commit that" oga@, ok sthen@ | ||
| 94cef117 | 2009-04-15 14:10:07 | don't sync more than 60 times per sec on resize and move; idea from scrotwm. ok oga@ sometime ago | ||
| cc291e29 | 2009-04-15 14:01:45 | properly teardown X connection upon quit; static a few while here, requested by oga@ ok oga@ sometime ago | ||
| 3a114084 | 2009-04-12 23:51:10 | we include sys/param.h, so remove sys/types.h; sort while here. ok oga@ | ||
| 388c3eba | 2009-04-04 15:10:44 | Update to xterm 243. tested by naddy@. Patch #243 - 2009/3/28 * revert change to default for allowTcapOps (request by Bram Moolenaar). * reallocate result returned by xtermEnvLocale() to avoid reference to freed memory after handling menuLocale resource. * fix an old (X11R5) bug in tek4014 for switching fontsizes. * add resource defaultString to make configurable the use of "#" when pastes of UTF-8 text fail due to limitations in the current locale settings. * make the set of selection target Atom's configurable by two new resources eightBitSelectTypes and utf8SelectTypes, e.g., to use the TEXT Atom in preference to UTF8_STRING (discussion with Stanislav Sedov regarding koi8rxterm and the FreeBSD port). * modify handling of TARGETS Atom by making it return exactly the set of targets as those which xterm is currently providing. * set MANPAGER and PAGER explicitly to /bin/cat in minstall.sh to work around /etc/man.conf's with those variables already set (report by Mar'yasin Semion). * improve error-checking of tcap-query parser. * add check for keyboard tcap), which ensures that terminal descriptions containing the same string for shifted/unshifted keys will be seen by tcap-query as only the unshifted key. (This would only happen with an incorrect terminal description). * fix conversion for input event-state to modifier-parameter which made tcap-query feature not work with tcapFunctionKeys (keyboard type tcap). * add "DEF_ALLOW_XXX" definitions to main.h to allow overriding the default compiled-in values for "allowxxx" resources. * remove check on bell-percentage added in patch #242, which disallowed zero/negative values (Redhat Bugzilla #487829). | ||
| b2a47454 | 2009-03-28 16:38:54 | - avoid shadowed Mask declaration in menu_filter - make _xev_reincorporate static evmask naming oga@, input okan@. ok okan@, oga@ | ||
| 8264c1f7 | 2009-03-28 15:38:46 | Disable applications not maintained anymore by X.Org: rstart/rstartd and proxymngr. ok todd@. | ||
| 47a95020 | 2009-03-09 22:13:04 | Update to xterm 242. Tested by jsg@. | ||
| 9aede421 | 2009-03-08 13:40:19 | Remove deprected applications that have been disconnected for a while. | ||
| c92ee53c | 2009-03-08 09:49:03 | regen | ||
| 85636570 | 2009-03-08 09:35:07 | Update to xauth 1.0.3 + fixes from git head. Partially addresses system/6097. | ||
| 04a164dc | 2009-02-09 16:13:47 | puffy 4.5 | ||
| af87ed96 | 2009-02-07 21:07:00 | add 'moveamount' to cwmrc; it sets keyboard movement amount, making it more useful on large screens manpage tweak & ok jmc@ ok okan@, oga@ | ||
| 0c4060da | 2009-02-07 16:59:11 | remove leftover from mdoc.samples; ok jmc@ | ||
| 33c5846d | 2009-02-03 22:20:31 | fix off-by-one in geom.[xy], after pwin changes. keyboard movement to the rightmost or bottommost corners would confuse cwm: - there's no way to get the window back - tab cycling breaks ok okan@, oga@ | ||
| 65fb6f11 | 2009-02-02 21:01:57 | Better looking default resources for the XDM chooser. ok pyr@, sobrado@. | ||
| 8fd38b91 | 2009-01-30 21:46:35 | getLocalAddress(): return 127.0.0.1 if the hostname doesn't resolve. This code already does this if IPv6 support is compiled in. It was dereferencing a NULL pointer in the IPv4 only case. | ||
| fef4aae8 | 2009-01-30 17:18:13 | regen | ||
| 384148c3 | 2009-01-30 17:17:19 | Fix a merge botch in xdm 1.1.8 update. | ||
| 5847d174 | 2009-01-30 11:06:25 | Add more input checks. From "nobody@example.com" on bugs@. | ||
| dbbba05d | 2009-01-29 22:18:35 | xdm 1.1.8. | ||
| ce211a10 | 2009-01-27 02:16:20 | remove Nscreens and x_screenname() - we really don't need them. ok oga@ | ||
| e75ea330 | 2009-01-27 00:42:53 | One of the most annoying things to do was restart cwm and lose all of your group state. Fix this up by using an X Atom (_CWM_GRP) to store the name of the group that we're using (the name, not the number is because at one point we may make the group numbers dynamic). I've been talking about this since c2k8. so CM-w means you keep all of your windows grouped properly. ok okan@, todd@ | ||
| 95be5acd | 2009-01-23 20:47:45 | passing a null pointer to free() is valid; sprinkle a few free->xfree. ok oga@ | ||
| b32f2133 | 2009-01-23 20:07:20 | Whitespace nit. pointed out by okan. | ||
| ed5d1f7c | 2009-01-23 20:04:30 | Switch to using XInternAtoms for caching the atom numbers. Saves a pile of function calls and server roundtrips. ok okan@ | ||
| 479c9127 | 2009-01-23 19:00:59 | move conf_clear() and add proto. ok todd@ oga@ | ||
| 9908d2b7 | 2009-01-23 18:58:40 | Move the keybinding argument to a union to prevent warnings where sizeof(int) != sizeof(void *). This has been annoying me for ages. ok okan@, todd@ | ||
| 17141e7c | 2009-01-22 19:01:56 | now that pwin is gone gone gone, we no longer have to do the bwidth dance; xevents now able to deal with a border being set (which fixes those annoying movie-watching apps). ok todd@, oga@ | ||
| dea701e5 | 2009-01-22 18:16:38 | The default font name is strduped, so don't test for default font name (therefore leaking it) when cleaning up a conf struct. ok okan@ | ||
| d12622bf | 2009-01-22 18:06:16 | Oops, missed an atom. ok okan@. | ||
| 35399648 | 2009-01-22 15:26:33 | Cache all of the X atoms we use at startup. Do this instead of querying for them every time we use them. This removes an XXX that has been in there since time began. This will become more important as we move towards supporting netwm. ok todd@, okan@. | ||
| eeba7da2 | 2009-01-21 15:04:38 | borderwidth as a cwmrc(5) keyword, really helps debugging from okan@ ok oga@ | ||
| 5409a9c7 | 2009-01-19 20:23:19 | library dependency ordering matters for static archs, -lXext last in this case from matthieu@, verified on vax | ||
| 927ee3a5 | 2009-01-17 20:39:24 | remove unused ok oga@ | ||
| d1881c13 | 2009-01-17 18:41:50 | Finally fix the really annoying race where if you rapidly switch groups several times you'd end up losing clients (thinking they had gone away). From the ICCCM (which should not be read without a stiff drink in hand, I made this mistake so you don't have to): to request a window to be withdrawn one should send a synthetic UnmapRequest event when iconified. To request iconification one should just unmap the window. The ICCM further recommends that the synthetic event should just be taken as a cue to withdraw, to deal with legacy clients. Taking a hint from this, rework xev_handle_unmaprequest to correctly detect these situations. A Withdrawn window may come back anywhere, even as a subwindow of something else, so the correct way to handle this state is to forget it ever existed. While i'm here, kill a dumb attempt to notice this in client_delete, and nuke the very unnecessary arguments. Todd confirmed this fixes the `race'. ok todd@, ok ok okan@ | ||
| a738af5c | 2009-01-16 16:49:17 | revert just the 'race fix'; more works needs to be ironed out with events and state. agreed by oga | ||
| 77631d04 | 2009-01-16 15:24:14 | remove pwin, bringing us to one client, one window. we no longer have to push attributes around, so things get a lot simplier, while fixing a few issues in the meantime; original suggestion by Edd Barrett many many moons ago. annoying window placement and race, found in c2k8 by todd, fix by oga! lots of feedback from todd and oga - thanks! "commit that bad boy" oga@ | ||
| 7b0ecc6d | 2009-01-15 17:23:12 | On startup, don't leak memory when we enumerate existing windows. The behaviour until now was to ask X for the windows name (which is malloced) then drop that on the floor and do nothing with it. Skip this foolery and just skip the window. I don't believe I never noticed this before! "you can has ok" okan@ | ||
| 454d1e5e | 2009-01-15 00:32:35 | - add missing prototypes. - properly name, place and static private functions. - move function which finds the xinerama screen for a coordinate to a more appropriate place while altering its semantics to match others. - tiny bit of style. ok oga@ | ||
| b14cbfe2 | 2009-01-13 15:25:43 | better cast; noticed by ray@ ok ray@ oga@ | ||
| 1b62620f | 2009-01-11 21:48:27 | Add -Wall to CFLAGS, it's helped find a few dodgy constructs. ok okan@. | ||
| b1941d12 | 2009-01-11 21:46:48 | shortcut_to_name should not be defined as static in a header file. Put it in group.c where it it used most, and add an extern definition for the other users of it. Found by gcc -Wall. ok okan@ | ||
| 331aeae1 | 2009-01-11 21:34:22 | add missing prototypes ok oga@ | ||
| f950e7b9 | 2009-01-11 21:33:45 | better comparison idiom; found with -Wall ok oga@ | ||
| 1f1b40b2 | 2009-01-11 18:34:46 | - merge grab_sweep() into mousefunc_window_resize(). - merge grab_drag() into mousefunc_window_move(). - properly name, proto and static private functions. - since we already do XMoveResizeWindow() and XMoveWindow() in (now) mousefunc_window_resize() and mousefunc_window_move() respectively, client_resize() and client_move() calls are unnecessary. ok oga@ | ||
| 343413a7 | 2009-01-11 18:32:08 | FcNameParse() manpage lies, cast here. found with pcc. ok oga@ |