~robertcarr/mir/client-focus-notifications

« back to all changes in this revision

Viewing changes to src/server/shell/surface.cpp

  • Committer: Robert Carr
  • Date: 2013-08-13 18:30:53 UTC
  • Revision ID: robert.carr@canonical.com-20130813183053-pp2hzgm46uvmc4x8
Revert to r762

Show diffs side-by-side

added added

removed removed

Lines of Context:
270
270
{
271
271
    bool valid = false;
272
272
 
273
 
    if (t >= 0 && t < mir_surface_type_enum_max_)
 
273
    if (t >= 0 && t < mir_surface_type_arraysize_)
274
274
    {
275
275
        type_value = t;
276
276
        valid = true;
289
289
    bool valid = false;
290
290
 
291
291
    if (s > mir_surface_state_unknown &&
292
 
        s < mir_surface_state_enum_max_)
 
292
        s < mir_surface_state_arraysize_)
293
293
    {
294
294
        state_value = s;
295
295
        valid = true;