Announcement

Collapse
No announcement yet.

How to cleanup wl_surface contents - previous display on screen ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to cleanup wl_surface contents - previous display on screen ?

    Hi,

    I am working on sample application based on opengl and wayland.

    When I exit the application, I am destroying buffer and surfaces and other resources still the contents of the buffer are not getting cleaned up. I see the previous drawings are still on the screen.

    I used this as an attempt:
    wl_surface::attach(0, 0, 0);
    wl_surface::commit();

    Still its not working.
    Please give some hints.

    Thanks,
    Bhushan.

  • #2
    committing a NULL buffer to a surface will remove the surface from the screen. if you are using weston and desktop-shell, the background will be displayed instead of the buffer contents. but if there's no background surface, the old contents will remain.

    Comment

    Working...
    X