~mir-team/mir/fix-1339700-in-0.4

« back to all changes in this revision

Viewing changes to examples/eglapp.c

server: Track SceneElement visibility in the DefaultDisplayBufferCompositor.

Approved by PS Jenkins bot, Kevin DuBois, Alan Griffiths, Cemil Azizoglu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
         */
128
128
        printf("Resized to %dx%d\n", ev->resize.width, ev->resize.height);
129
129
    }
 
130
    else if (ev->type == mir_event_type_surface &&
 
131
             ev->surface.attrib == mir_surface_attrib_visibility)
 
132
    {
 
133
        if (ev->surface.value == mir_surface_visibility_exposed)
 
134
            printf("Surface exposed\n");
 
135
        else if (ev->surface.value == mir_surface_visibility_occluded)
 
136
            printf("Surface occluded\n");
 
137
    }
130
138
}
131
139
 
132
140
static const MirDisplayOutput *find_active_output(