summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruint <72694427+uint23@users.noreply.github.com>2025-08-29 19:46:54 +0100
committerGitHub <noreply@github.com>2025-08-29 19:46:54 +0100
commita9aed1de914ba587843dca86a735a1dd25119dc7 (patch)
tree7ce38dfbd4e680d2f479fb0810e7221dd618f219
parent2987ba5a5356f437232693a2349d254e4daab5eb (diff)
parent70062cb8bdfe8f663186d02491698b7f34daf688 (diff)
Merge pull request #226 from uint23/dev
merge: fix undefined behavior & add xcursor package to void dep list
-rw-r--r--README.md2
-rw-r--r--src/sxwm.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2a98146..b1f2299 100644
--- a/README.md
+++ b/README.md
@@ -244,7 +244,7 @@ sudo emaint -a sync
<details>
<summary>Void Linux</summary>
<pre><code>sudo xbps-install -S
-sudo xbps-install libX11-devel libXinerama-devel gcc make</code></pre>
+sudo xbps-install libX11-devel libXinerama-devel libXcursor-devel gcc make</code></pre>
</details>
<details>
diff --git a/src/sxwm.c b/src/sxwm.c
index 6ed33c0..57be734 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -2783,10 +2783,10 @@ void update_modifier_masks(void)
/* keycode at mod[i][j] */
KeyCode keycode = mod_mapping->modifiermap[i * mod_mapping->max_keypermod + j];
if (keycode == num) {
- numlock_mask = (1 << i); /* which mod bit == NumLock key */
+ numlock_mask = (1u << i); /* which mod bit == NumLock key */
}
if (keycode == mode) {
- mode_switch_mask = (1 << i); /* which mod bit == Mode_switch key */
+ mode_switch_mask = (1u << i); /* which mod bit == Mode_switch key */
}
}
}