Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
xserver
xserver
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 888
    • Issues 888
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 95
    • Merge Requests 95
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • xorg
  • xserverxserver
  • Merge Requests
  • !333

Merged
Opened Nov 12, 2019 by Olivier Fourdan@ofourdan🛠Maintainer

xwayland: Do not discard frame callbacks on allow commits

  • Overview 28
  • Commits 1
  • Pipelines 8
  • Changes 1

Currently, when a X11 client (usually the X11 window manager from a Wayland compositor) changes the value of the X11 property _XWAYLAND_ALLOW_COMMITS from false to true, all pending frame callbacks on the window are discarded so that the commit occurs immediately.

Weston uses that mechanism to prevent the content of the window from showing before it's ready when mapping the window initially, but discarding the pending frame callbacks has no effect on the initial mapping of the X11 window since at that point there cannot be any frame callback on a surface which hasn't been committed yet anyway.

However, discarding pending frame callbacks can be problematic if we were to use the same _XWAYLAND_ALLOW_COMMITS mechanism to prevent damages to be posted before the X11 toplevel is updated completely (including the window decorations from the X11 window manager).

Remove the portion of code discarding the pending frame callback, Xwayland should always wait for a pending frame callback if there's one before posting new damages.

See also:

wayland/weston!293 (merged) !316 (merged)

Edited Nov 13, 2019 by Olivier Fourdan
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: xorg/xserver!333
Source branch: xwayland-no-force-commit