42 Commits

Author SHA1 Message Date
Kovid Goyal
b81700a8fd
DRYer 2018-05-17 17:12:24 +05:30
Kovid Goyal
b319fd4b93
Implement resizing for vertical and horizontal layouts 2018-05-17 17:09:03 +05:30
Kovid Goyal
190612d507
Make the resize step size configurable 2018-05-17 16:48:35 +05:30
Kovid Goyal
cddfe425e1
Dont keep increasing bias in Tall layout when it wont change the actual layout
Also refactor the bias code so that it is shared with the fat layout.
2018-05-17 16:02:42 +05:30
Kovid Goyal
bc6a03a41b
Implement resizing for the Fat layout 2018-05-17 15:19:05 +05:30
Kovid Goyal
e053d1f566
Implement resizing of individual windows in a layout
See the Layouts section in the README for details. Fixes #362

Note that it is only implemented for the Tall layout currently. Other
layouts to follow. The implementation might also be refined in the
future.
2018-05-17 15:09:41 +05:30
Kovid Goyal
903df9972a
... 2018-05-16 16:25:41 +05:30
Kovid Goyal
4dcbb1f077
Avoid needless re-allocation of Layout objects on layout change
Also allows layout instance data to be preserved when cycling layouts
2018-05-16 16:24:31 +05:30
Kovid Goyal
5158d49781
Generalize bias handling 2018-05-16 15:57:04 +05:30
Kovid Goyal
3fdf47c535
Allow specifying the width of the tall window in the Tall layout as a percentage of available space
Also remove the --window-layout option as it was redundant. Same effect
can be achieved using -o enabled_layouts=some_layout,*
2018-05-16 14:02:58 +05:30
theJian
b6517758d9 Add fat layout 2018-05-11 00:59:46 +08:00
Kovid Goyal
14459a7d18
Fix #506 2018-05-03 11:19:11 +05:30
Kovid Goyal
040ae75c77
Remote control: Allow matching windows by number (visible position).
Fixes #501
2018-04-28 11:00:42 +05:30
Kovid Goyal
c99588082b
Fix incorrect bottom blank rects in vertical and tall layouts 2018-02-20 10:06:37 +05:30
Kovid Goyal
647b95631f
Add tests for layout operations with an overlay window 2018-02-04 11:28:13 +05:30
Kovid Goyal
aa518b2520
Add tests for basic layout operations 2018-02-04 11:28:13 +05:30
Kovid Goyal
51c0f01539
Support for overlay windows in the layout manager 2018-02-04 11:28:02 +05:30
Kovid Goyal
cc9a19b303
Move set_active_window into base class
It was only used in a single sub-class anyway
2018-02-02 13:56:25 +05:30
Kovid Goyal
9ad65f2e1d
Cleanup layouts patch
Fix bottom rect in horizontal layout not covering all windows. Fix pep8
issues. Add README and CHANGELOG entries.
2018-01-23 19:35:30 +05:30
Guybrush Threepwood
a6a606ff3d
Added vertical and horizontal layouts 2018-01-23 19:30:41 +05:30
Kovid Goyal
4f12c91fff
Use the new region function everywhere
Centralizes window layout calculation and no longer assumes
tab bar geometry
2018-01-19 15:56:07 +05:30
Kovid Goyal
c7e1a12eb6
Have pt_to_px use global_state instead of get_dpi
DRYer and reduces code size
2017-12-14 18:04:10 +05:30
Kovid Goyal
9c135f9f4c
Add a grid window layout
Fixes #192
2017-12-01 12:16:17 +05:30
Kovid Goyal
f8c7a7a690
more bug fixes 2017-12-01 12:15:33 +05:30
Kovid Goyal
82d17c8a59
DRYer 2017-12-01 12:15:32 +05:30
Kovid Goyal
0ec793e8bc
Finish porting of borders and layout 2017-12-01 12:15:32 +05:30
Kovid Goyal
e11a50ae83
Work on migrating the code needed for application startup 2017-12-01 12:15:32 +05:30
Kovid Goyal
e6df82b255
Move the char grid render call into C 2017-09-15 10:45:24 +05:30
Kovid Goyal
348fe4ada4
Option for window padding
Fixes #85
2017-06-05 23:57:17 +05:30
Kovid Goyal
bbc6b2d86a
Option to size window margin (blank area outside window borders)
Defaults to zero
2017-06-05 22:27:47 +05:30
Kovid Goyal
59d5a3ad9b Have the layouts calculate the blank rectangles
Fixes occasional flashing at the edges of windows in the Tall layout
2017-01-18 13:55:51 +05:30
Kovid Goyal
4326c49320 Remove unused code 2016-12-11 09:48:09 +05:30
Kovid Goyal
de2c1deb97 More refactoring 2016-12-05 20:52:08 +05:30
Kovid Goyal
204a2868a8 Top-align the Tall layout 2016-12-05 09:02:17 +05:30
Kovid Goyal
cbe1cf58e8 Implement shortcut for previous window 2016-12-05 08:56:48 +05:30
Kovid Goyal
242e75d4ec ... 2016-12-05 08:46:14 +05:30
Kovid Goyal
21c7b21f74 Hook up the window border rendering code 2016-12-05 08:38:32 +05:30
Kovid Goyal
594ca34868 Implement next_layout() 2016-12-05 07:37:29 +05:30
Kovid Goyal
7cde189bf5 Start work on implement layouts other than Stack 2016-12-04 22:34:31 +05:30
Kovid Goyal
836494a8f0 Implement the basic shortcuts for window management 2016-12-03 12:48:37 +05:30
Kovid Goyal
b1e39dac02 Start work on rendering window borders 2016-11-28 13:38:13 +05:30
Kovid Goyal
b5000c2ec0 Refactor to support multiple windows/tabs 2016-11-26 17:40:28 +05:30