Commit Graph

210 Commits

Author SHA1 Message Date
Xinhao Yuan 497d076903 Skip cleanup when the tag has no screen. Also connect -> disconnect. 2022-11-07 11:36:59 -05:00
Xinhao Yuan 7a9c2d15df instance.tag_data -> instance.nested_tags; td -> nt 2022-11-07 11:36:10 -05:00
Xinhao Yuan 1d05e2860c Nits. 2022-11-07 11:34:42 -05:00
Xinhao Yuan d15b877fb5 Use the original move handler when in a nested layout. 2022-06-29 09:22:41 -04:00
Xinhao Yuan 3b3fcd82d7 Patch awful.layout to avoid swapping client order in machi layouts, which causes flooding of client signals.
This should fix #18.
2022-06-15 23:35:36 -04:00
Xinhao Yuan 958f989e58 Do not cache the tag name. 2022-06-15 23:33:31 -04:00
Xinhao Yuan 7b472770ee Try to reduce size changes when arranging clients, but allow clipping in switcher. 2022-06-06 22:32:15 -04:00
Xinhao Yuan 2e78636124 Clean up a dangling reference. 2022-05-23 23:35:00 -04:00
Xinhao Yuan e413822ae1 Avoid null error when screen configuration is changed. 2022-01-09 16:38:39 -05:00
Xinhao Yuan df15a7b78e Avoid deadloop when recomputing is triggered. 2021-09-06 14:49:49 -04:00
Xinhao Yuan 09989c71e9 Fix outdated test expectations. 2021-09-06 13:15:29 -04:00
Xinhao Yuan 5cee31af77 In switcher mode, always set focus to the top window after changing the area. This fixes issue #14. 2021-07-14 20:55:58 -04:00
Xinhao Yuan 7f5b0b17a5 Variable scope fix: need_recompute. 2021-06-27 13:15:44 -04:00
Xinhao Yuan 540519f026 Code nits. 2021-06-21 22:56:08 -04:00
Xinhao Yuan ac1620de02 Add merge message. 2021-06-19 11:26:57 -04:00
Xinhao Yuan deffde6873 Emulate signals in virtual tags for nested layouts. Call arrange on empty nested layouts. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 64ce84e370 Make the placement example more concrete. 2021-04-18 13:18:44 -04:00
Xinhao Yuan bf2151475f Keep instance data when adjusting. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 946494ecf0 Let default name function depend on the icon name. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 9f9a558b2f Document. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 92d13918ba Nits in README. 2021-04-18 13:18:44 -04:00
Xinhao Yuan f3c5535aa7 Add a placement to try empty area only. Minor bug fixing. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 8f3261d9da Revise the placement example. 2021-04-18 13:18:44 -04:00
Xinhao Yuan c804572ac9 Open areas are by default habitable. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 4099e6fde6 English is hard again. inhabitable -> habitable and use the right meaning. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 07adcbdad0 API changes for new_placement_cb and bug fixes. 2021-04-18 13:18:44 -04:00
Xinhao Yuan c8fa41f367 Document the new placement callback with some tweaks. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 9b602cfc25 Allow resizing windows with parent traversal. 2021-04-18 13:18:44 -04:00
Xinhao Yuan ea8b4f950c Maintain a stack of parent traverse. Minor tweaks. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 5d02447da5 Use pango to render text in the editor. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 945ba92ef5 Remove draft mode logic in the engine. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 2188a2a625 Ignore 0 secondary arg. 2021-04-18 13:18:44 -04:00
Xinhao Yuan f8ff725e9b Fix a regression of size adjustments. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 88148f0dee Minor adjustment. Moving a window does not change its draft mode. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 9d1487b6af README. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 2b8ee4abd6 Deprecate per-layout draft mode. Add placement callback. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 27f684ee5a README update on the draft mode. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 47b3f6a96f More automatic drafting status. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 76d2aa5776 Unify style and indentation. 2021-04-18 13:18:44 -04:00
Xinhao Yuan ee08eecb49 Per-window setting of draft mode. 2021-04-18 13:18:44 -04:00
Xinhao Yuan b8a08279cf Ensure that cursor fit in the selected area. 2021-04-18 13:18:44 -04:00
Xinhao Yuan db19cbc869 Restore correct command in nested editor. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 8a304d7c5a Fix an error in areas_to_command; Tweaks. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 7433ddd1ea Change to use Shift + Backspace to restore the current command. 2021-04-18 13:18:44 -04:00
Xinhao Yuan 40a20f08d2 Refactor the engine out of editor. Support adjustment with various tweaks. Need to reduce the diff... 2021-04-18 13:18:42 -04:00
Xinhao Yuan a04e2d6e35 Avoid using confusing syntax in README. 2021-04-18 13:16:59 -04:00
Xinhao Yuan 971edae6aa Apply better gaps handling for nested layouts. 2021-03-28 18:25:37 -04:00
Xinhao Yuan 2d197b9faa
Merge pull request #7 from JavaCafe01/master
Add customization options for colors and opacity
2021-03-07 18:07:44 -05:00
Gokul Swami 88ee21dcdc Prefix beautiful variables with "machi" 2021-03-01 02:37:57 -08:00
Gokul Swami e86e9c957e Merge branch 'master' of https://github.com/xinhaoyuan/layout-machi 2021-02-27 02:59:08 -08:00