~brandontschaefer/mir/improve-capnproto-cmake-find

« back to all changes in this revision

Viewing changes to examples/miral-kiosk/kiosk_window_manager.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2017-09-21 17:29:59 UTC
  • mfrom: (4257.2.1 mir4)
  • Revision ID: tarmac-20170921172959-h7lmrju6fkli5gi9
[miral-kiosk] Parentless freestyle windows should also be maximized.

Approved by mir-ci-bot, Gerry Boland.

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
{
134
134
    WindowSpecification specification = CanonicalWindowManagerPolicy::place_new_window(app_info, request);
135
135
 
136
 
    if (specification.type() == mir_window_type_normal &&
 
136
    if ((specification.type() == mir_window_type_normal || specification.type() == mir_window_type_freestyle) &&
137
137
        (!specification.parent().is_set() || !specification.parent().value().lock()))
138
138
    {
139
139
        specification.state() = mir_window_state_maximized;
150
150
{
151
151
    WindowSpecification specification = modifications;
152
152
 
153
 
    if (window_info.type() == mir_window_type_normal && !window_info.parent())
 
153
    if ((window_info.type() == mir_window_type_normal || window_info.type() == mir_window_type_freestyle) &&
 
154
        !window_info.parent())
154
155
    {
155
156
        specification.state() = mir_window_state_maximized;
156
157
        tools.place_and_size_for_state(specification, window_info);