~kgunn72/mir/dont-crash-when-shooting-invalid-surface

« back to all changes in this revision

Viewing changes to examples/fingerpaint.c

  • Committer: Tarmac
  • Author(s): Alan Griffiths, Alexandros Frantzis, Daniel van Vugt, Kevin DuBois, Christopher James Halse Rogers, chris.gagnon, Mathieu Trudel-Lapierre, Robert Carr, Automatic PS uploader, Kevin Gunn, Daniel d'Andrada, Christopher James Halse Rogers, Michael Terry, Brandon Schaefer, Timo Jyrinki, Mir Team, Andreas Pokorny
  • Date: 2013-12-20 11:11:22 UTC
  • mfrom: (1169.1.1 version-0.1.3)
  • Revision ID: tarmac-20131220111122-h503fd1fnq7pn9za
Latest upstream release: Mir 0.1.3 (r1298).

Approved by Alan Griffiths, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
            redraw(surface, canvas);
248
248
        }
249
249
    }
 
250
    else if (event->type == mir_event_type_resize)
 
251
    {
 
252
        /* FIXME: https://bugs.launchpad.net/mir/+bug/1194384
 
253
         * mir_event_type_resize will arrive in a different thread to that of
 
254
         * mir_event_type_motion, so we cannot safely redraw from this thread.
 
255
         * Either the callbacks will need to become thread-safe, or we'd have
 
256
         * to employ some non-trivial event queuing and inter-thread signals,
 
257
         * which I think is beyond the scope of this example code.
 
258
         *
 
259
         *    redraw(surface, canvas);
 
260
         */
 
261
    }
250
262
}
251
263
 
252
264
static const MirDisplayOutput *find_active_output(