Commit Graph

21 Commits

Author SHA1 Message Date
yosh 15790d4c46 chore: convert spaces to tabs 2024-02-24 02:00:11 -05:00
raichoo 48fc9656ca Make `hikari` build with `wlroots` 0.13.0 2021-04-09 17:15:35 +00:00
raichoo 51e394f07b Split up view pinning and view migration
Sheet pinning could also function as view migration. This is now removed since
it leads to two possible code paths for migration. We now decide at the call
site if we are doing a migration or a different operation (e.g. pinning,
moving).
2020-08-13 14:17:28 +00:00
raichoo 37bf6f1c0d refactor indicator bar color handling
Indicator bars now store their current color. This fixes issues where bars get
updated and need to figure out which mode `hikari` is in so they can color
themselves correctly. This way the bar just "knows" the right color.
2020-07-22 10:43:36 +00:00
raichoo 030f72013e refactor mode interface
Make the devices resolve listeners and properly cast events so the modes do not
have to do this themselves.
2020-07-08 12:32:23 +00:00
raichoo 8ca5233f55 refactor binding configuration code
Bindings should get configured when devices are attached. Not when the
configuration is loaded. This patch lays the groundwork for more flexible
keyboard configuration.
2020-06-23 14:23:15 +00:00
raichoo d5547a07bc add `hikari_renderer`
Remove `hikari_render_data` in favor of `hikari_renderer`.
2020-06-18 22:00:45 +00:00
raichoo 05dd2bac85 move mode rendering code into render module
By doing this all the relevant rendering code is now in one compilation unit. We
can also make very mode take complete control of its rendering while maintaining
efficient code.
2020-06-18 21:58:54 +00:00
raichoo 7806c4d943 fix visual glitch during migration
During move mode we should not draw the indicator when the view is hidden for a
short amount of time during the transition to another output. Otherwise this
leads to the indicator being drawn on the wrong spot at the other monitor.
2020-05-19 14:44:56 +00:00
raichoo b465a1dfa6 specialize server migrate function to `focus_view`
This function assumes that the view we are migrating is the focus view anyway,
so passing something else would cause an error.
2020-05-16 07:01:27 +00:00
raichoo 35f88853bb centralize view migration code
This code has been duplicated 3 times and is now moved to a central place.
2020-05-12 13:21:26 +00:00
raichoo 81deec5d6f damage focus view group on move/resize mode cancel
The `cancel` function only damaged the indicator. This leads to the view border
not being properly redrawn as well as group indication when the mode gets
cancelled.
2020-05-12 12:54:07 +00:00
raichoo 6cf17e749c only pass view flags to sheet indicator update 2020-05-12 12:08:17 +00:00
raichoo 78b0c261e1 allow view migration via mouse
This allows `move-mode` to migrate views between outputs as it it were just
movement.
2020-05-07 13:34:47 +00:00
raichoo 2091de7625 refactor cursor handling
Cursor handling is moved into its own module and normal mode. This adds to
readability and removes the need for a couple of checks.
2020-04-30 12:35:18 +00:00
raichoo 5949a550d5 initial drag and drop support
This allows drag and drop support inside of a view. This does not work across
views yet.
2020-04-27 16:21:45 +00:00
raichoo 5e3212adeb refactor damage handling
This patch reworks entirely how `hikari` marks areas as damaged. Instead of
damaging all views during indication just the views that actually change
indication get damaged.
2020-04-25 10:33:12 +00:00
raichoo a16bb5970d move mode enter code into mode modules
The code for entering each mode is currently in the server module, moving those
into the appropriate mode modules allows for more optimizations (like properly
refreshing indicators).
2020-04-17 11:43:32 +00:00
raichoo 53a2bf1ab3 remove redundant mode type enum 2020-03-03 13:16:49 +00:00
raichoo 9c90dde976 make configuration reloadable
This patch introduces a new action called `reload`.
2020-02-14 21:20:35 +00:00
raichoo 9e81a0fa92 Let there be light! 2020-02-05 10:02:33 +00:00