~mir-team/miral/zesty

« back to all changes in this revision

Viewing changes to miral-shell/titlebar_window_manager.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:
120
120
 
121
121
void TitlebarWindowManagerPolicy::end_resize()
122
122
{
 
123
    if (!resizing  && !pinching)
 
124
        return;
 
125
 
123
126
    if (auto window = tools.active_window())
124
127
    {
125
128
        auto& window_info = tools.info_for(window);
512
515
    WindowSpecification modifications;
513
516
    modifications.top_left() = new_pos;
514
517
    modifications.size() = new_size;
515
 
    tools.modify_window(tools.info_for(window), modifications);
 
518
    tools.modify_window(window, modifications);
516
519
 
517
520
    return true;
518
521
}