Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • xcbproto xcbproto
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • proto
  • xcbprotoxcbproto
  • Merge requests
  • !29
The source project of this merge request has been removed.

Add DOUBLE-BUFFER extension specification.

Merged Mike Sharov requested to merge (removed):master into master Jun 02, 2022
  • Overview 23
  • Pipelines 0
  • Changes 2

This is the DOUBLE-BUFFER X extension specification, Xdbe in libX11.

All requests implemented except GetVisualInfo, because it returns an array of arrays of visual information structs, and I was unable to figure out how to write that in XML. Fortunately, the call is not necessary; it returns the list of visuals that support double buffering, and on modern hardware all visuals do.

There was also a problem marking the swap actions field in AllocateBackBuffer as the corresponding enum. c_client in libxcb has some unusual code for emitting documentation for enum fields that appears to be hardcoded specifically for xproto.xml, and fails to lookup the enum by name. It might be because while I did document the enum, the documentation is not emitted anywhere.

I tested by modifying one of the xcb tutorials. Allocating the back buffer, rendering and swapping the buffers, and getting the back buffer attributes work correctly.

Edited Jun 04, 2022 by Mike Sharov
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master