~kdub/content-hub/mir-deprecations

« back to all changes in this revision

Viewing changes to examples/pasteboard/copy.cpp

  • Committer: Kevin DuBois
  • Date: 2017-02-17 20:01:45 UTC
  • Revision ID: kevin.dubois@canonical.com-20170217200145-bl82lvuiki9cjsfh
update recommendation in examples

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
    /* Won't work unless you disable the surface Id verification with CONTENT_HUB_TESTING=1 env var
45
45
       To get the surface Id of a MirSurface in a real GUI app you should to it like the following:
46
 
          MirPersistentId* mirPermaId = mir_surface_request_persistent_id_sync(mirSurface);
47
 
          QString surfaceId = mir_persistent_id_as_string(mirPermaId);
48
 
          mir_persistent_id_release(mirPermaId);
 
46
          MirWindowId* mirWindowId = mir_window_request_window_id_sync(mirWindow);
 
47
          QString windowId = mir_window_id_as_string(mirWindowId);
 
48
          mir_window_id_release(mirWindowId);
49
49
    */
50
50
    QString surfaceId("some-bogus-fake-surface-id");
51
51