From 6f616dc1a2eb4b1db543d13799abe18230e24e00 Mon Sep 17 00:00:00 2001 From: Sathors Date: Fri, 29 Sep 2023 09:29:06 -0500 Subject: [PATCH] Add a check to silence an error when switching displays with xrandr. --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 60bc0f3..5a1de5a 100644 --- a/init.lua +++ b/init.lua @@ -40,6 +40,7 @@ client.connect_signal("focus", function(c) gears.timer.weak_start_new(0.15, function() local client_under_mouse = mouse.current_client + if client_under_mouse == nil then return false end local should_stay = set_contains(stay_classes, client_under_mouse.class) if should_stay then return false end