~alan-griffiths/miral/miral-xrun

« back to all changes in this revision

Viewing changes to miral/basic_window_manager.cpp

  • Committer: Alan Griffiths
  • Date: 2016-10-03 13:52:55 UTC
  • mfrom: (376.1.1 miral)
  • Revision ID: alan@octopull.co.uk-20161003135255-krh6oh0l6tabret5
Add userdata property to WindowSpecification and copy it to WindowInfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
    if (spec.parent().is_set() && spec.parent().value().lock())
103
103
        window_info.parent(info_for(spec.parent().value()).window());
104
104
 
 
105
    if (spec.userdata().is_set())
 
106
        window_info.userdata() = spec.userdata().value();
 
107
 
105
108
    session_info.add_window(window);
106
109
 
107
110
    auto const parent = window_info.parent();
547
550
    COPY_IF_SET(output_id);
548
551
    COPY_IF_SET(preferred_orientation);
549
552
    COPY_IF_SET(confine_pointer);
 
553
    COPY_IF_SET(userdata);
550
554
 
551
555
#undef COPY_IF_SET
552
556