~mir-team/miral/zesty

« back to all changes in this revision

Viewing changes to miral-shell/spinner/eglapp.cpp

  • Committer: Bileto Bot
  • Date: 2016-10-24 15:25:22 UTC
  • mfrom: (334.1.4 miral-0.3)
  • Revision ID: ci-train-bot@canonical.com-20161024152522-g758835syc6fca10
* New upstream release 0.3.0 (https://launchpad.net/miral/+milestone/0.3)
  - ABI summary:
    . miral ABI unchanged at 1
  - Enhancements:
    . Add miral-xrun as a better way to use Xmir
    . Added miral/version.h to allow permit compile-time feature detection
    . A convenient overload of WindowManagerTools::modify_window() that
      doesn't require the WindowInfo
    . Add userdata property to WindowSpecification and copy it to WindowInfo
    . miral::Keymap - support for keyboard maps (either programatically
      Keymap::set_keymap(), or via config --keymap)
  - Bugs fixed:
    . Crash after closing Qt dialog (LP: #1631958)
    . tooltips positioned wrong with mir0.24 (LP: #1632325, LP: #1633052)
    . Shell wants way to associate initially requested window creation state
      with the window later created (#1629349)
    . [Xmir] Alt+` switch between different apps not just windows
      (LP: #1625849)
    . miral-shell splash screen should be fullscreen.
    . TitlebarWindowManagerPolicy::end_resize() should do nothing if not
      resizing
    . deduplicate logging of WindowSpecification::top_left

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    // If an output has been specified just do that
104
104
    if (surfaceparm.output_id != mir_display_output_id_invalid)
105
105
    {
106
 
        for_each_active_output(connection, [&](MirDisplayOutput const* output)
107
 
            {
108
 
                if (output->output_id == surfaceparm.output_id)
109
 
                {
110
 
                    auto const& mode = output->modes[output->current_mode];
111
 
                    surfaceparm.width = mode.horizontal_resolution;
112
 
                    surfaceparm.height = mode.vertical_resolution;
113
 
                }
114
 
            });
115
106
        result.push_back(std::make_shared<MirEglSurface>(mir_egl_app, surfaceparm, swapinterval));
116
107
        return result;
117
108
    }
126
117
                   output->position_x, output->position_y,
127
118
                   mode.horizontal_resolution, mode.vertical_resolution);
128
119
 
129
 
            surfaceparm.width = mode.horizontal_resolution;
130
 
            surfaceparm.height = mode.vertical_resolution;
131
120
            surfaceparm.output_id = output->output_id;
132
121
            result.push_back(std::make_shared<MirEglSurface>(mir_egl_app, surfaceparm, swapinterval));
133
122
        });