From df2a2a62ea0424d3be79ce406a51358bd4c4a851 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Thu, 3 Aug 2023 08:34:26 +0200 Subject: [PATCH] Improved screen proxy url detection --- monarch/monarch.lua | 8 ++++---- monarch/screen_proxy.script | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/monarch/monarch.lua b/monarch/monarch.lua index 3d46c52..85426e3 100644 --- a/monarch/monarch.lua +++ b/monarch/monarch.lua @@ -21,7 +21,7 @@ local MSG_ENABLE = hash("enable") local MSG_DISABLE = hash("disable") -local DEPRECATED = hash("/__DEPRECATED__") +local DEPRECATED = hash("__DEPRECATED__") -- transition messages M.TRANSITION = {} @@ -281,13 +281,13 @@ function M.register_proxy(id, proxy, settings) screen.focus_url = settings and settings.focus_url screen.receiver_url = settings and settings.receiver_url screen.auto_preload = settings and settings.auto_preload - if screen.transition_url.path == DEPRECATED then + if screen.transition_url.fragment == DEPRECATED then screen.transition_url = nil end - if screen.focus_url.path == DEPRECATED then + if screen.focus_url.fragment == DEPRECATED then screen.focus_url = nil end - if screen.receiver_url.path == DEPRECATED then + if screen.receiver_url.fragment == DEPRECATED then screen.receiver_url = nil end if screen.auto_preload then diff --git a/monarch/screen_proxy.script b/monarch/screen_proxy.script index 7b362a3..0f171c6 100644 --- a/monarch/screen_proxy.script +++ b/monarch/screen_proxy.script @@ -7,9 +7,9 @@ go.property("popup_on_popup", false) go.property("timestep_below_popup", 1) go.property("screen_keeps_input_focus_when_below_popup", false) go.property("others_keep_input_focus_when_below_screen", false) -go.property("transition_url", msg.url("__DEPRECATED__")) -go.property("focus_url", msg.url("__DEPRECATED__")) -go.property("receiver_url", msg.url("__DEPRECATED__")) +go.property("transition_url", msg.url("#__DEPRECATED__")) +go.property("focus_url", msg.url("#__DEPRECATED__")) +go.property("receiver_url", msg.url("#__DEPRECATED__")) go.property("preload", false)