mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-09 12:45:00 +00:00
reintroduce cursortheme
This commit is contained in:
parent
68829dae1d
commit
bfb6f8392b
@ -1,9 +0,0 @@
|
||||
### Description
|
||||
Adds ability to change cursor's theme and size.
|
||||
|
||||
### Download
|
||||
- [v0.4](https://github.com/djpohly/dwl/compare/main...dm1tz:04-cursortheme.patch)
|
||||
- [2021-12-04](https://github.com/djpohly/dwl/compare/main...egorguslyan:cursortheme.patch)
|
||||
|
||||
### Authors
|
||||
- [egorguslyan](https://github.com/egorguslyan)
|
39
cursortheme/cursortheme.patch
Normal file
39
cursortheme/cursortheme.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From 05a532202ec5aa989f790939d6006af79f80e938 Mon Sep 17 00:00:00 2001
|
||||
From: wochap <gean.marroquin@gmail.com>
|
||||
Date: Wed, 6 Mar 2024 07:52:05 -0500
|
||||
Subject: [PATCH] apply Zakharchenko cursortheme patch, sync with v0.5
|
||||
|
||||
source: https://github.com/djpohly/dwl/wiki/cursortheme
|
||||
---
|
||||
config.def.h | 2 ++
|
||||
dwl.c | 2 +-
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config.def.h b/config.def.h
|
||||
index db0babc..aeb5174 100644
|
||||
--- a/config.def.h
|
||||
+++ b/config.def.h
|
||||
@@ -12,6 +12,8 @@ static const float focuscolor[] = COLOR(0x005577ff);
|
||||
static const float urgentcolor[] = COLOR(0xff0000ff);
|
||||
/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */
|
||||
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0}; /* You can also use glsl colors */
|
||||
+static const char cursortheme[] = NULL; /* theme from /usr/share/cursors/xorg-x11 */
|
||||
+static const unsigned int cursorsize = 24;
|
||||
|
||||
/* tagging - TAGCOUNT must be no greater than 31 */
|
||||
#define TAGCOUNT (9)
|
||||
diff --git a/dwl.c b/dwl.c
|
||||
index ef27a1d..bd53fc0 100644
|
||||
--- a/dwl.c
|
||||
+++ b/dwl.c
|
||||
@@ -2299,7 +2299,7 @@ setup(void)
|
||||
* Xcursor themes to source cursor images from and makes sure that cursor
|
||||
* 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(NULL, 24);
|
||||
+ cursor_mgr = wlr_xcursor_manager_create(cursortheme, cursorsize);
|
||||
setenv("XCURSOR_SIZE", "24", 1);
|
||||
|
||||
/*
|
||||
--
|
||||
2.42.0
|
Loading…
x
Reference in New Issue
Block a user