← Back to team overview

touch-packages team mailing list archive

[Bug 1420573] Re: [enhancement] Missing client function for surface resizing

 

** Changed in: mir
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1420573

Title:
  [enhancement] Missing client function for surface resizing

Status in Mir:
  Fix Released
Status in XMir:
  Confirmed
Status in mir package in Ubuntu:
  New

Bug description:
  Missing client API for client-initiated interactive resizing (eg: drag
  on the client-drawn resize handles)

  Actually there are two types of client initiated resizing we need to
  support:

  (a) Client specifies new width and height (e.g. video player loaded new file or System Settings switched panel).
  (b) Edge resizing for client-drawn decorations (which is closely related to bug 1420334).

  (a) Would be something like:
     mir_surface_resize(surface, width, height);

  (b) Could be something like:
     mir_surface_move_resize(surface, delta_top, delta_bottom, delta_left, delta_right);
  which would solve bug 1420334 also, as you can then say:

  void mir_surface_move_by(MirSurface *s, int dx, int dy)
  {
      mir_surface_move_resize(s, dy, dy, dx, dx);
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1420573/+subscriptions