mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +02:00
Improved screen proxy url detection
This commit is contained in:
parent
4e13660d63
commit
df2a2a62ea
@ -21,7 +21,7 @@ local MSG_ENABLE = hash("enable")
|
|||||||
local MSG_DISABLE = hash("disable")
|
local MSG_DISABLE = hash("disable")
|
||||||
|
|
||||||
|
|
||||||
local DEPRECATED = hash("/__DEPRECATED__")
|
local DEPRECATED = hash("__DEPRECATED__")
|
||||||
|
|
||||||
-- transition messages
|
-- transition messages
|
||||||
M.TRANSITION = {}
|
M.TRANSITION = {}
|
||||||
@ -281,13 +281,13 @@ function M.register_proxy(id, proxy, settings)
|
|||||||
screen.focus_url = settings and settings.focus_url
|
screen.focus_url = settings and settings.focus_url
|
||||||
screen.receiver_url = settings and settings.receiver_url
|
screen.receiver_url = settings and settings.receiver_url
|
||||||
screen.auto_preload = settings and settings.auto_preload
|
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
|
screen.transition_url = nil
|
||||||
end
|
end
|
||||||
if screen.focus_url.path == DEPRECATED then
|
if screen.focus_url.fragment == DEPRECATED then
|
||||||
screen.focus_url = nil
|
screen.focus_url = nil
|
||||||
end
|
end
|
||||||
if screen.receiver_url.path == DEPRECATED then
|
if screen.receiver_url.fragment == DEPRECATED then
|
||||||
screen.receiver_url = nil
|
screen.receiver_url = nil
|
||||||
end
|
end
|
||||||
if screen.auto_preload then
|
if screen.auto_preload then
|
||||||
|
@ -7,9 +7,9 @@ go.property("popup_on_popup", false)
|
|||||||
go.property("timestep_below_popup", 1)
|
go.property("timestep_below_popup", 1)
|
||||||
go.property("screen_keeps_input_focus_when_below_popup", false)
|
go.property("screen_keeps_input_focus_when_below_popup", false)
|
||||||
go.property("others_keep_input_focus_when_below_screen", false)
|
go.property("others_keep_input_focus_when_below_screen", false)
|
||||||
go.property("transition_url", msg.url("__DEPRECATED__"))
|
go.property("transition_url", msg.url("#__DEPRECATED__"))
|
||||||
go.property("focus_url", msg.url("__DEPRECATED__"))
|
go.property("focus_url", msg.url("#__DEPRECATED__"))
|
||||||
go.property("receiver_url", msg.url("__DEPRECATED__"))
|
go.property("receiver_url", msg.url("#__DEPRECATED__"))
|
||||||
go.property("preload", false)
|
go.property("preload", false)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user