Open RiedleroD opened 3 years ago
@RiedleroD I'm no anexpert, but it may be that the compositor Sway doesn't handle "monitors" as such, clearly the error message says that... I'll try to put together in a VM and try to replicate the error to see if it can be fixed.
As a side note as workaround, you can compile LightPad by following the instructions and coding the exact measurements of your monitor (width and height in pixels) in the code. Example:
https://github.com/libredeb/lightpad/blob/5591802094743377f04c645563f8dd6ad108aa68/src/Application.vala#L59 https://github.com/libredeb/lightpad/blob/5591802094743377f04c645563f8dd6ad108aa68/src/Application.vala#L60
You can replace pixel_geo.width
and pixel_geo.height
with exaclty with the exact pixel measurements of your monitor. I mean:
monitor_dimensions.width = 1920 / monitor.get_scale_factor ();
monitor_dimensions.height = 1080 / monitor.get_scale_factor ();
before compiling. That should work.
I'm getting this output (info level messages removed):
I'm trying to get this working on Arch (installed lightpad 0.0.8-2 from yay) running on Sway 1:1.5.1-1 with XWayland 1.20.0.r800.ge4a9f0bb4-1 and waybar 0.9.5-2 installed. Other gtk applications are running without problems (aside from the occasional warning but eh).
I hope you can identify the problem.