mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-10-28 02:34:22 +00:00
This commit is contained in:
parent
8c1016d049
commit
1c2a00f057
@ -1,7 +1,7 @@
|
|||||||
From 05a532202ec5aa989f790939d6006af79f80e938 Mon Sep 17 00:00:00 2001
|
From 05a532202ec5aa989f790939d6006af79f80e938 Mon Sep 17 00:00:00 2001
|
||||||
From: wochap <gean.marroquin@gmail.com>
|
From: wochap <gean.marroquin@gmail.com>
|
||||||
Date: Wed, 6 Mar 2024 07:52:05 -0500
|
Date: Wed, 6 Mar 2024 07:52:05 -0500
|
||||||
Subject: [PATCH] apply Zakharchenko cursortheme patch, sync with v0.5
|
Subject: [PATCH 1/2] apply Zakharchenko cursortheme patch, sync with v0.5
|
||||||
|
|
||||||
source: https://github.com/djpohly/dwl/wiki/cursortheme
|
source: https://github.com/djpohly/dwl/wiki/cursortheme
|
||||||
---
|
---
|
||||||
@ -37,3 +37,39 @@ index ef27a1d..bd53fc0 100644
|
|||||||
/*
|
/*
|
||||||
--
|
--
|
||||||
2.42.0
|
2.42.0
|
||||||
|
|
||||||
|
|
||||||
|
From 9563a0845c1ab1024732c8cf6dd7867957d488e1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: wochap <gean.marroquin@gmail.com>
|
||||||
|
Date: Mon, 18 Mar 2024 17:38:46 -0500
|
||||||
|
Subject: [PATCH 2/2] fix: sync cursorsize with env XCURSOR_SIZE
|
||||||
|
|
||||||
|
---
|
||||||
|
dwl.c | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/dwl.c b/dwl.c
|
||||||
|
index bd53fc0..c1121a8 100644
|
||||||
|
--- a/dwl.c
|
||||||
|
+++ b/dwl.c
|
||||||
|
@@ -2167,7 +2167,9 @@ setup(void)
|
||||||
|
{
|
||||||
|
int i, sig[] = {SIGCHLD, SIGINT, SIGTERM, SIGPIPE};
|
||||||
|
struct sigaction sa = {.sa_flags = SA_RESTART, .sa_handler = handlesig};
|
||||||
|
+ char cursorsize_str[3];
|
||||||
|
sigemptyset(&sa.sa_mask);
|
||||||
|
+ sprintf(cursorsize_str, "%d", cursorsize);
|
||||||
|
|
||||||
|
for (i = 0; i < LENGTH(sig); i++)
|
||||||
|
sigaction(sig[i], &sa, NULL);
|
||||||
|
@@ -2300,7 +2302,7 @@ setup(void)
|
||||||
|
* images are available at all scale factors on the screen (necessary for
|
||||||
|
* HiDPI support). Scaled cursors will be loaded with each output. */
|
||||||
|
cursor_mgr = wlr_xcursor_manager_create(cursortheme, cursorsize);
|
||||||
|
- setenv("XCURSOR_SIZE", "24", 1);
|
||||||
|
+ setenv("XCURSOR_SIZE", cursorsize_str, 1);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* wlr_cursor *only* displays an image on screen. It does not move around
|
||||||
|
--
|
||||||
|
2.42.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user