79164403

Date: 2024-11-06 21:55:54
Score: 1
Natty:
Report link

Not to self-promote, but you should take a look at my repository, unstatistical/engine. When I started this project, I was fairly new to Wayland and EGL development, but I believe that some code may still be relevant. Wayland code can be found in src/wayland.

I believe the best way to control window position is using a wl_region object. You can create a region using this function:

wlContext.region = wl_compositor_create_region(wlContext.compositor);

And then, you can set the window's position like so:

wl_region_add(wlContext.region, x, y, w, h);

Best of luck on your project.

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: unstatistical