~phablet-team/qtubuntu/trunk

« back to all changes in this revision

Viewing changes to src/ubuntumirclient/input.cpp

  • Committer: CI Train Bot
  • Author(s): Nick Dedekind
  • Date: 2015-11-05 16:56:40 UTC
  • mfrom: (280.2.6 qtubuntu)
  • Revision ID: ci-train-bot@canonical.com-20151105165640-fr65a7y3x5yhbio2
Support server->client visibility change to stop rendering (lp:#1475678) Fixes: #1475678
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
    case mir_event_type_surface:
233
233
    {
234
234
        auto surfaceEvent = mir_event_get_surface_event(nativeEvent);
235
 
        if (mir_surface_event_get_attribute(surfaceEvent) == mir_surface_attrib_focus) {
 
235
        auto surfaceEventAttribute = mir_surface_event_get_attribute(surfaceEvent);
 
236
 
 
237
        if (surfaceEventAttribute == mir_surface_attrib_focus) {
236
238
            ubuntuEvent->window->handleSurfaceFocusChange(mir_surface_event_get_attribute_value(surfaceEvent) ==
237
239
                mir_surface_focused);
 
240
 
 
241
        } else if (surfaceEventAttribute == mir_surface_attrib_visibility) {
 
242
            ubuntuEvent->window->handleSurfaceExposeChange(mir_surface_event_get_attribute_value(surfaceEvent) ==
 
243
                                                           mir_surface_visibility_exposed);
238
244
        }
239
245
        break;
240
246
    }