fix sway dwt to be usable

This commit is contained in:
Leonardo Eugênio 2022-12-02 00:36:54 -03:00
parent 57a82ba996
commit a69f888c0e
3 changed files with 30 additions and 1 deletions

View file

@ -27,6 +27,11 @@
propagatedBuildInputs = with prev.python3Packages; propagatedBuildInputs = with prev.python3Packages;
old-ranger.propagatedBuildInputs ++ [ astroid pylint pytest ]; old-ranger.propagatedBuildInputs ++ [ astroid pylint pytest ];
})); }));
sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
patches = old.patches ++ [
../patches/sway/fix-hide_cursor-clearing-focus.patch
];
});
material-wifi-icons = final.stdenv.mkDerivation rec { material-wifi-icons = final.stdenv.mkDerivation rec {
name = "material-wifi-icons"; name = "material-wifi-icons";
src = inputs.material-wifi-icons; src = inputs.material-wifi-icons;

View file

@ -0,0 +1,24 @@
From b21dc487ac4bfc086cf295e06b8d8765a99e7266 Mon Sep 17 00:00:00 2001
From: lelgenio <lelgenio@disroot.org>
Date: Thu, 24 Jun 2021 22:36:10 -0300
Subject: [PATCH] Fix #6297
This makes it so that `seat hide_cursor` no longer clears cursor focus when hidding.
Clearing focus casuses problems whenever keyboard and mouse are to be used in conjunction.
---
sway/input/cursor.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 96b5b93514..99fe3b4e3f 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -236,7 +236,6 @@ void cursor_update_image(struct sway_cursor *cursor,
static void cursor_hide(struct sway_cursor *cursor) {
wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0);
cursor->hidden = true;
- wlr_seat_pointer_notify_clear_focus(cursor->seat->wlr_seat);
}
static int hide_notify(void *data) {

View file

@ -78,7 +78,7 @@ in {
}; };
input."type:touchpad" = { input."type:touchpad" = {
# Disable While Typing # Disable While Typing
dwt = "disabled"; dwt = "enabled";
natural_scroll = "enabled"; natural_scroll = "enabled";
tap = "enabled"; tap = "enabled";
}; };