Skip to content
  • Simon Ser's avatar
    server: add wl_global_remove · 6cb65b92
    Simon Ser authored
    This commit adds a new wl_global_remove function that just sends a global
    remove event without destroying it. See [1] for details.
    
    Removing a global is racy, because clients have no way to acknowledge they
    received the removal event. There's no way to fix this, since wl_registry is
    frozen.
    
    It's possible to mitigate the issue by sending the removal event, waiting a
    little and then destructing the global for real. The "wait a little" part is
    compositor policy.
    
    [1]: wayland/wayland#10
    
    
    
    Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
    6cb65b92