You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, and thanks for the work on the wlroots bindings.
I have a 1024x768 display I want to use with Linux which seems to behave in a non-standard way.
The only way I can get the display to work properly is using a wlroots-based compositor.
It seems the DRM atomic commit operation is what's doing the trick.
X does not work with my display. However, once I've run and exited sway for example, the display is setup correctly and X applications work.
To initialise my display I'm writing a wlroots utility that should only do an output commit and then exit.
This is working, but I'm not able to exit the display event loop using `display.terminate()´.
If I call it from the backend's new_output_event callback, I guess it's too early since the event loop is not yet started.
Is there an event from the display I can listen for that I can use to terminate the display?
This is the current source that sets up the display fine, but of course does not exit:
from pywayland.server import Display, Listener
from wlroots.backend import Backend, BackendType
from wlroots.wlr_types import Output, OutputState
from wlroots.renderer import Renderer
from wlroots.allocator import Allocator
def server_new_output(listener, output: Output) -> None:
print("New output")
global allocator, renderer
output.init_render(allocator, renderer)
state = OutputState()
state.set_enabled(True)
if mode := output.preferred_mode():
state.set_mode(mode)
output.commit(state)
state.finish()
print("Starting")
display = Display()
backend = Backend(display, backend_type=BackendType.AUTO)
backend.new_output_event.add(Listener(server_new_output))
renderer = Renderer.autocreate(backend)
allocator = Allocator.autocreate(backend, renderer)
backend.start()
display.run()
print("Bye!")
The text was updated successfully, but these errors were encountered:
Hi, and thanks for the work on the wlroots bindings.
I have a 1024x768 display I want to use with Linux which seems to behave in a non-standard way.
The only way I can get the display to work properly is using a wlroots-based compositor.
It seems the DRM atomic commit operation is what's doing the trick.
X does not work with my display. However, once I've run and exited sway for example, the display is setup correctly and X applications work.
To initialise my display I'm writing a wlroots utility that should only do an output commit and then exit.
This is working, but I'm not able to exit the display event loop using `display.terminate()´.
If I call it from the backend's
new_output_event
callback, I guess it's too early since the event loop is not yet started.Is there an event from the display I can listen for that I can use to terminate the display?
This is the current source that sets up the display fine, but of course does not exit:
The text was updated successfully, but these errors were encountered: