diff options
author | Wolfgang Müller | 2024-06-21 11:03:45 +0200 |
---|---|---|
committer | Wolfgang Müller | 2024-06-21 11:03:45 +0200 |
commit | 4ca98f9b98c93dd1e63a2f6fcea14b909a110f54 (patch) | |
tree | c2754600fb70519e3056f12a8998499fe807fc94 /desktop-wayland/patches | |
parent | a7a3d52619c467570785807b11f3e79b0b290c31 (diff) | |
download | portage-roles-4ca98f9b98c93dd1e63a2f6fcea14b909a110f54.tar.gz |
desktop-wayland: Migrate to gui-wm/sway
Sadly it seems that gui-wm/hikari is no longer under active development
and stuck on an old wlroots version. Programs based on gtk4 have never
worked correctly [1], even when patched [2], mouse grabbing doesn't work
reliably [3], and tools like mpv have begun making assumptions on what
kind of features are available in compositors [4].
gui-wm/sway seems to be the best alternative for now.
[1] https://hub.darcs.net/raichoo/hikari/issue/26
[2] https://cgit.freebsd.org/ports/commit/?id=5d9c5b9cac42a22716f292fca5717c9842fdf464
[3] https://hub.darcs.net/raichoo/hikari/issue/49
[4] https://github.com/mpv-player/mpv/commit/e32554cd570d984efb712a7214a40237233a3cea
Diffstat (limited to 'desktop-wayland/patches')
-rw-r--r-- | desktop-wayland/patches/gui-wm/hikari/0001-Pick-highest-refresh-rate-for-preferred-resolution.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/desktop-wayland/patches/gui-wm/hikari/0001-Pick-highest-refresh-rate-for-preferred-resolution.patch b/desktop-wayland/patches/gui-wm/hikari/0001-Pick-highest-refresh-rate-for-preferred-resolution.patch deleted file mode 100644 index ab707ea..0000000 --- a/desktop-wayland/patches/gui-wm/hikari/0001-Pick-highest-refresh-rate-for-preferred-resolution.patch +++ /dev/null @@ -1,45 +0,0 @@ -From b15060d4191fde43e599e1fdf1beaf4a1d238075 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Wolfgang=20M=C3=BCller?= <wolf@oriole.systems> -Date: Sun, 15 May 2022 18:20:38 +0200 -Subject: [PATCH] Pick highest refresh rate for preferred resolution - -When configuring an output, hikari uses the first mode it finds. This -means that we may not end up with the highest refresh rate for a given -resolution. Since we usually want to make use of higher refresh rates, -find the monitor's preferred resolution and pick a corresponding mode -with the highest refresh rate. ---- - src/output.c | 17 +++++++++++++---- - 1 file changed, 13 insertions(+), 4 deletions(-) - -diff --git a/src/output.c b/src/output.c -index 5b0fd56..b2a7dc6 100644 ---- a/src/output.c -+++ b/src/output.c -@@ -254,10 +254,19 @@ hikari_output_init(struct hikari_output *output, struct wlr_output *wlr_output) - output->damage_destroy.notify = damage_destroy_handler; - wl_signal_add(&output->damage->events.destroy, &output->damage_destroy); - -- if (!wl_list_empty(&wlr_output->modes)) { -- struct wlr_output_mode *mode = -- wl_container_of(wlr_output->modes.next, mode, link); -- wlr_output_set_mode(wlr_output, mode); -+ struct wlr_output_mode *preferred = wlr_output_preferred_mode(wlr_output); -+ -+ if (preferred) { -+ struct wlr_output_mode *mode, *best = preferred; -+ -+ wl_list_for_each(mode, &wlr_output->modes, link) { -+ if (mode->width == preferred->width && -+ mode->height == preferred->height && -+ mode->refresh > best->refresh) -+ best = mode; -+ } -+ -+ wlr_output_set_mode(wlr_output, best); - } - - wl_list_init(&output->damage_frame.link); --- -2.35.1 - |