summaryrefslogtreecommitdiff
path: root/gui-apps/wf-shell/files/wf-shell-0.11.0-fix-clang.patch
blob: 8563a363ee4f8901c1ffd96ab6d6e9d3c75377e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
https://github.com/WayfireWM/wf-shell/commit/e248716a804d68f7aa3465e50347023cd56edbbf

From e248716a804d68f7aa3465e50347023cd56edbbf Mon Sep 17 00:00:00 2001
From: Gurkul Sahoo <gurkulsahoo47@gmail.com>
Date: Fri, 7 Aug 2026 18:31:28 +0530
Subject: [PATCH] locker: fix Clang build failure in switch on WfOption<int>

Clang rejects the implicit decltype(auto) conversion operator from
base_option_wrapper_t as a valid contextual conversion for switch,
while GCC accepts it. Use the explicit .value() accessor instead.
--- a/src/locker/timedrevealer.cpp
+++ b/src/locker/timedrevealer.cpp
@@ -18,7 +18,7 @@ WayfireLockerTimedRevealer::WayfireLockerTimedRevealer(std::string always_option
     auto hide_callback = [this] ()
     {
         Gtk::RevealerTransitionType type = Gtk::RevealerTransitionType::NONE;
-        switch (hide_animation)
+        switch (hide_animation.value())
         {
           case 1:
             type = Gtk::RevealerTransitionType::CROSSFADE;