Commit Graph

33 Commits

Author SHA1 Message Date
Mike Small f4d595988a in progress improved window cmd-tab switching 2022-08-14 13:27:30 -04:00
Mike Small 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
Michael Small cbc7afb302 Silence gcc 7.5.0 warning about ignoring return value In function ‘void Execute(const char*)’: error: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Werror=unused-result]
     (void) system (s);
2021-02-23 13:21:48 -05:00
Mike Small 5d1c9ebee6 Builtin move-or-lower, move-or-raise, move-or-iconify
(instead of user defined functions in default config file)

- Remove MoveDelta option in favor of a program constant.
- Remove deltastop function. It was part of the mechanism to provide
  move-or-* as custom functions.
2021-02-15 20:10:59 -05:00
Mike Small 63be49b23c Remove iconify/deiconify zoom animation option
It's too fast to see.
2021-01-31 23:41:29 -05:00
Mike Small 21dcde5dd6 Remove NoGrabServer and IconRegion options
Update documentation, including new simplified icon placement.
2021-01-31 22:47:18 -05:00
Mike Small 893bdb5928 Convert menus.c to C++ 2021-01-31 12:39:10 -05:00
Mike Small 86161c72c5 change repo in README 2020-11-28 18:57:21 -05:00
Mike Small 08ba0745ac remove unused roundUp function
also add some debugging for a problem remaining in icon placement.
2020-11-27 18:18:02 -05:00
Mike Small 1488571514 Remove unused functions, minor whitespace change 2020-11-14 20:38:05 -05:00
Mike Small d7b0dd7bc1 make unmanaged file list less obtrusive 2020-11-14 20:36:15 -05:00
Mike Small 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
Mike Small d98d0940c0 narrow scope of variable x 2020-11-07 14:44:29 -05:00
Mike Small 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
Mike Small 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
Mike Small b3028310eb 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
Mike Small dc91096aa1 file for openbsd environment setup 2020-04-10 21:40:42 -04:00
Mike Small 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
Mike Small 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
Mike Small 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
Mike Small 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
Mike Small eb039dc872 Remove opaquemove option. Always use wire frame. 2018-08-23 00:27:04 -04:00
Mike Small 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
Mike Small c042bc37ee Remove DontIconifyByUnmapping and IconifyByUnmapping options. 2018-02-11 19:57:36 -05:00
Mike Small 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
Mike Small 30e2e57a58 Set warnings as errors.
Const correct massaging to lose the couple warnings that were there.
2017-10-01 00:02:51 -04:00
Mike Small 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