653
|
|
Do a little further cleanup of code related to startup and nearby things, improve a feature, and fix some long-standing bugs.
- Running --cfgchk with no $DISPLAY can now check font cursor names, slightly reducing the list of things it would miss.
- When restarting ctwm, we'll now properly come up showing the icon managers for the workspace you're in, rather than just showing those for the first workspace.
- When shutting ourself down (or restarting), we now explicitly reparent away the windows and set their position rather than letting the X server do it for us when we go away. This lets us choose the order it happens, doing it from the bottom up, so restarting will now also preserve the stacking of windows.
Testing revealed some slightly incorrect cases where restarting would wind up moving a window (particularly implicated: a neutral gravity, and a window that moved itself). This isn't a regression though, so I get to put off trying to fix that for a while...
|
Matthew Fuller |
|
5 years ago
|
|
|
605
|
|
|
Matthew Fuller |
|
6 years ago
|
|
|
555
|
|
Centralize license info and standardize copyright statements.
There are 4 classes of license applied to the current code. There is code that came from twm, which has Evans & Sutherland and MIT copyrights, with associated license. And there is [nearly all of] the code that came in as part of the ctwm lifecycle, which has copyrights from Claude and other ctwm contributors, with that associated license. These cover the bulk of the code, and are all described in the base COPYRIGHT file. All the license info from individual files that fall into these categories was moved into COPYRIGHT, and copyright lines were left but abridged and are referenced to it.
VCS history is really the best way to track authorship of individual code sections anyway. File-level granularity is too coarse to be useful most of the time, and there are more than a few places where what's given is pretty questionable given the apparent code history.
There are files in ext/ that are third party code brought in to fill in specific functionality; they have their own license info explicitly listed in each file. And there is the special case of session.c, which, in addition to the twm and ctwm copyright/license info, has an additional (and more restrictive) license from Durham. This is left explicitly spelled out in that file.
|
Matthew Fuller |
|
7 years ago
|
|
|
509
|
|
|
Matthew Fuller |
|
7 years ago
|
|
|
506
|
|
|
Matthew Fuller |
|
7 years ago
|
|
|
495
|
|
Various broad cleanups. Probably more uncaught cases of everything still lurking to be found.
- Consistently use C99 bool type and true/false values for boolean vars, struct elements, function arguments, return values, and constants. This replaces inconsistent uses of int's and shorts, with 1/0 and TRUE/FALSE #define values, and a number of uses of X11 Bool type and True/False values (in all sorts of mis-combinations). Bool and True/False are still retained for places where they're used with Xlib, as that's the right type there.
- Some minor renaming of vars and struct elements in that process.
- Various header file cleanups. Include where used, but don't make them broader than necessary (e.g., #including in a .h because you need it in the .c, in most cases). When something's in ctwm.h, we don't need it elsewhere. GC unused includes, macros, and vars. extern specifier isn't needed or useful on function prototypes. Guard everything with the idempotency guards.
- Various malloc() and friends cleanups. Don't even pretend to support systems where we have to prototype them ourselves. Don't cast malloc() returns and free() args. Use calloc() where appropriate.
- Misc pre-c89 code cleanups. NULL is a pointer value, 0 (or casts of 0) aren't. Signal handlers return void.
- Other minor changes found in the process.
|
Matthew Fuller |
|
7 years ago
|
|
|
484
|
|
|
Matthew Fuller |
|
8 years ago
|
|
|
434
|
|
|
Matthew Fuller |
|
8 years ago
|
|
|
342
|
|
|
Matthew Fuller |
|
9 years ago
|
|
|
335
|
|
|
Olaf 'Rhialto' Seibe... |
|
9 years ago
|
|
|
333
|
|
|
Matthew Fuller |
|
9 years ago
|
|
|
329
|
|
|
Matthew Fuller |
|
9 years ago
|
|
|
305
|
|
|
Matthew Fuller |
|
9 years ago
|
|
|
298
|
|
Selected a number of cleanups from Stefan Monnier <monnier@IRO.UMontreal.CA>, including rate-limiting of animations using a new _XA_WM_END_OF_ANIMATION message. Font height is estimated based on used characters only. Added some similar changes, improved the prevention of placing windows off-screen, the "f.rescuewindows" function for emergencies, a hack-fix for f.adoptwindow. More virtual screen tweaks/fixes.
Added the remaining OnTopPriority changes from Stefan Monnier <monnier@IRO.UMontreal.CA>: AutoPopup, AutoPriority, OnTopPriority, PrioritySwitching, f.changepriority, f.priorityswitching, f.setpriority, f.switchpriority, f.tinylower, f.tinyraise. Currently consistency checking code is enabled, which will terminate with an assertion failure if something unexpected happens. Smoothed out various inconsistencies that this check discovered when virtual screens are used.
|
Olaf 'Rhialto' Seibe... |
|
10 years ago
|
|
|
93
|
|
|
Richard Levitte |
|
19 years ago
|
|
|
17
|
|
|
Claude Lecommandeur |
ctwm-3.5 |
21 years ago
|
|
|
11
|
|
|
Claude Lecommandeur |
ctwm-3.2p1 |
21 years ago
|
|
|
8
|
|
|
Claude Lecommandeur |
ctwm-3.0 |
21 years ago
|
|
|
1
|
|
|
Claude Lecommandeur |
ctwm-1.1 |
21 years ago
|
|
|