svc: Create windows without URLs
dustin/hudctrl/pipeline/head This commit looks good
Details
dustin/hudctrl/pipeline/head This commit looks good
Details
Every screen needs a window, even if it does not have a URL, otherwise no URL can ever be assigned to it.master
parent
d278eedcbd
commit
2325da85fd
|
@ -91,7 +91,7 @@ class HUDService:
|
||||||
try:
|
try:
|
||||||
url = self.urls[monitor.name]
|
url = self.urls[monitor.name]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
continue
|
url = None
|
||||||
if window is None:
|
if window is None:
|
||||||
window = await self.marionette.new_window('window')
|
window = await self.marionette.new_window('window')
|
||||||
self.windows[monitor.name] = window
|
self.windows[monitor.name] = window
|
||||||
|
@ -101,6 +101,7 @@ class HUDService:
|
||||||
y=1,
|
y=1,
|
||||||
)
|
)
|
||||||
await self.marionette.fullscreen()
|
await self.marionette.fullscreen()
|
||||||
|
if url is not None:
|
||||||
log.info('Screen %s: Opening URL %s', monitor.name, url)
|
log.info('Screen %s: Opening URL %s', monitor.name, url)
|
||||||
tasks.append(
|
tasks.append(
|
||||||
asyncio.create_task(self.marionette.navigate(url))
|
asyncio.create_task(self.marionette.navigate(url))
|
||||||
|
|
Loading…
Reference in New Issue