Commit Graph

11 Commits

Author SHA1 Message Date
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 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 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
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