Commit Graph
22 Commits
Author SHA1 Message Date
smallm 39038bddb6 Remove user defined function feature
After the previous commit there's no need. The only place
they were of use now has builtins for the same purpose.
2021-04-04 00:06:13 -04:00
smallm 893bdb5928 Convert menus.c to C++ menus.cc 2021-01-31 12:39:10 -05:00
smallm 86161c72c5 change repo in README 2020-11-28 18:57:21 -05:00
smallm 08ba0745ac remove unused roundUp function
also add some debugging for a problem remaining in icon placement.
2020-11-27 18:18:02 -05:00
smallm 1488571514 Remove unused functions, minor whitespace change 2020-11-14 20:38:05 -05:00
smallm d7b0dd7bc1 make unmanaged file list less obtrusive 2020-11-14 20:36:15 -05:00
smallm 09842b93dc adjustments to icon placement
- the biggest part of this is fixing a bug that prevented the last empty space in the
  icon area to be used.
- also prefer new C++ style variable initialization.
2020-11-14 19:53:24 -05:00
smallm d98d0940c0 narrow scope of variable x 2020-11-07 14:44:29 -05:00
smallm 79e5cec364 Rename tmp_win to win, use reference in local function
Trivial cleanup. Start eliminating tmp_ from variable names. What is temporary
about the window object here?
2020-11-07 14:40:05 -05:00
smallm dc914b56b2 Make PlaceIcon new position as return value.
minor cleanup to avoid returning values through pointer arguments.
2020-11-07 12:45:13 -05:00
smallm b3028310eb icons.cc minor cleanup
- use std::pair instead of own struct
- initialize icon_area_x each time instead of caching the value.
- comment tidying
2020-10-17 20:49:04 -04:00
smallm dc91096aa1 file for openbsd environment setup 2020-04-10 21:40:42 -04:00
smallm 2f8a64623a Get compiling in OpenBSD 6.6 (with clang). 2020-04-10 21:33:56 -04:00
smallm 2a336b4f12 Remove TitlePadding option, hardcoding default.
I cannot ever see myself wanting to customize this distance between the
buttons. If I decide to pack them tighter or vice versa, I'll change
the TITLE_PADDING macro.

This is an early step in eliminating the TBInfo structure (screen.h).
2018-11-25 23:50:24 -05:00
smallm d232df77c4 Remove border widths, title button indent and random placement options.
I use the default border width, 2 pixels.  I use "random" placement
instead of the manually sized grid at window creation.

Also get rid of the Clientborderwidth and respect existing window
border widths unless they are zero.

I got rid of the title button borders and made the buttons use as
much space as available. The resize button looked odd so I added
one more pair of line segments that more or less match up with where
the old right and bottom border would have been.
2018-09-06 21:22:43 -04:00
smallm 4de2773058 Remove RandomPlacement and UsePPosition options.
For now that means to behave as if RandomPlacement is true
and UsePPosition is non-zero (use PPosition if the window position
isn't (0,0).
2018-08-25 15:01:34 -04:00
smallm eb039dc872 Remove opaquemove option. Always use wire frame. 2018-08-23 00:27:04 -04:00
smallm 94f29d39ab Remove title squeeze and window highlight options.
1. Always squeeze title and on left.
2. Always highlight windows and their titles.
2018-08-14 00:38:38 -04:00
smallm c042bc37ee Remove DontIconifyByUnmapping and IconifyByUnmapping options. 2018-02-11 19:57:36 -05:00
smallm fd61bea39c Remove the iconmgr feature.
With this twmruined reads .twmruinedrc instead of .twmrc.

Some more details from the Changelog:

* src/twm.h and several other files: remove iconmgr functionality.
Also drop the sample configuration file directory. These referenced
iconmgr settings which I've removed. As more settings go these
files would get further and further from their authors' intentions
if I were to maintain them.

* aclocal.m4: regenerated using aclocal (automake) 1.15.1 on OpenBSD 6.2.
export AUTOCONF_VERSION=2.69 AUTOMAKE_VERSION=1.15.1 ACLOCAL=/usr/local/bin/aclocal-1.15
/usr/local/bin/aclocal-1.15 -I /usr/X11R6/share/aclocal

* configure: regenerated using autoconf 2.69 on OpenBSD 6.2.
2017-12-16 21:42:55 -05:00
smallm 30e2e57a58 Set warnings as errors.
Const correct massaging to lose the couple warnings that were there.
2017-10-01 00:02:51 -04:00
smallm 5cfb5bf2e7 Preliminaries: renaming 2017-09-28 00:55:30 -04:00