From 57e23ee39256b9639c4271a9ce4bd62a2880ba1e Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 26 Dec 2020 01:42:55 +0100 Subject: [PATCH] Rewrite X11 event mask A literal like this is much more understandable. --- src/wine-host/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wine-host/editor.cpp b/src/wine-host/editor.cpp index b543050c..5de2f913 100644 --- a/src/wine-host/editor.cpp +++ b/src/wine-host/editor.cpp @@ -22,7 +22,7 @@ * The most significant bit in an X11 event's response type is used to indicate * the event source. */ -constexpr uint16_t event_type_mask = ((1 << 7) - 1); +constexpr uint16_t event_type_mask = 0b0111'1111; /** * The name of the X11 property on the root window used to denote the active