Commit Graph

22 Commits

Author SHA1 Message Date
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
d98d0940c0 narrow scope of variable x 2020-11-07 14:44:29 -05:00
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
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
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
dc91096aa1 file for openbsd environment setup 2020-04-10 21:40:42 -04:00
2f8a64623a Get compiling in OpenBSD 6.6 (with clang). 2020-04-10 21:33:56 -04:00
Mike Small
b4207174da Put first icon in bottom right.
Also drop use of IconUp and IconDown.
2019-10-21 23:35:52 -04:00
Mike Small
3830011bc5 stop hard coding values for icon placement
This breaks on multiscreen, but I don't use that.
2019-10-12 10:02:00 -04:00
Mike Small
0bc3929750 Fine tune the simple icon placement technique.
iconifying is working how I want it now.
2019-10-07 23:58:20 -04:00
Mike Small
740a9e9e79 Start converting to C++. Start simplified icon placement. 2019-10-06 22:28:07 -04:00
Mike Small
6a3d5089d7 Remove remaining iconmgr mentions in man page.
Also update README to cover changes so far.
2019-09-28 20:04:23 -04:00
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
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
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
eb039dc872 Remove opaquemove option. Always use wire frame. 2018-08-23 00:27:04 -04:00
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
c042bc37ee Remove DontIconifyByUnmapping and IconifyByUnmapping options. 2018-02-11 19:57:36 -05:00
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
30e2e57a58 Set warnings as errors.
Const correct massaging to lose the couple warnings that were there.
2017-10-01 00:02:51 -04:00
5cfb5bf2e7 Preliminaries: renaming 2017-09-28 00:55:30 -04:00
Michael Small
20894d7b1b twm-1.0.9 2017-09-15 23:01:49 -04:00