x11-wm/hikari: Fix a bug

- Add a patch where input from mouse/keyboard goes to the wrong view

PR:		268758
Reported by:	J.R. Oldroyd <fbsd at opal dot com>
This commit is contained in:
Ashish SHUKLA 2023-01-15 15:44:35 +00:00
parent b1cff32978
commit 50fe17b00a
No known key found for this signature in database
3 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= hikari
DISTVERSION= 2.3.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11-wm wayland
MASTER_SITES= https://hikari.acmelabs.space/releases/

View File

@ -1,6 +1,6 @@
--- Makefile.orig 2020-06-09 16:21:34 UTC
--- Makefile.orig 2021-04-09 17:37:23 UTC
+++ Makefile
@@ -224,7 +224,7 @@ install: hikari hikari-unlocker share/man/man1/hikari.
@@ -252,7 +252,7 @@ install: hikari hikari-unlocker share/man/man1/hikari.
sed "s,PREFIX,${PREFIX}," etc/hikari/hikari.conf > ${DESTDIR}/${ETC_PREFIX}/etc/hikari/hikari.conf
chmod 644 ${DESTDIR}/${ETC_PREFIX}/etc/hikari/hikari.conf
install -m ${PERMS} hikari ${DESTDIR}/${PREFIX}/bin

View File

@ -0,0 +1,10 @@
--- src/xwayland_view.c.orig 2023-01-15 15:39:48 UTC
+++ src/xwayland_view.c
@@ -304,6 +304,7 @@ activate(struct hikari_view *view, bool active)
struct wlr_xwayland_surface *xwayland_surface = xwayland_view->surface;
wlr_xwayland_surface_activate(xwayland_surface, active);
+ wlr_xwayland_surface_restack(xwayland_surface, NULL, XCB_STACK_MODE_ABOVE);
wlr_xwayland_set_seat(hikari_server.xwayland, hikari_server.seat);
}