Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • W weston
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 341
    • Issues 341
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 133
    • Merge requests 133
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waylandwayland
  • weston
  • Issues
  • #518
Closed
Open
Issue created Jul 16, 2021 by Michal Artazov@kytart

How to control EGL window position on screen?

I have a working program that creates an EGL window and then renders into it using OpenGL ES on Raspberry Pi 4. I can control the size of the window but the position on the screen is random every time. I need to be able to control the position on the screen.

I've read that it can be done with subsarfaces and I looked at the clients/subsurfaces.c example but wasn't able to make sense of it.

I attached egl.c file where I'm initializing both Wayland and EGL and it contains all the important bits.

I tried a few experiments with creating a second surface, making it a subsurface and then creating the EGL window from that subsurface but then nothing ever showed up on the screen.

Any help would be much appreciated.

egl.c

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking