Skip to content

ui/cocoa: Use NSWindow's ability to resize

Akihiko Odaki qemu-devel 7 versions – In review

Get series with b4
b4 am [email protected] change-id 20231211-cocoa-576b8639e9bd

Versions newest first

  1. v12 Latest10 patches 8 repliesIn review
  2. v116 patches 9 repliesSuperseded
  3. v106 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v96 patches0 repliesSuperseded
v83 patches0 repliesSuperseded
v71 patch8 repliesSuperseded
v61 patch6 repliesSuperseded

Changes in v12 from the cover letter

- Extracted patches "ui/cocoa: Split [-QemuCocoaView handleEventLocked:]", "ui/cocoa: Immediately call [-QemuCocoaView handleMouseEvent:buttons:]" from "ui/cocoa: Release specific mouse buttons". (Peter Maydell)
- Changed the message of patch "ui/cocoa: Call console_select() with the BQL" to refer to [-QemuCocoaView displayConsole:]. (Peter Maydell)
- Added patch "ui/cocoa: Fix pause label coordinates".
- Added patch "ui/cocoa: Remove normalWindow".
- Removed [-QemuCocoaView fixZoomedFullScreenSize:], which turned out unnecessary.
- Simplified references to NSWindow.styleMask.
- Link to v11: https://lore.kernel.org/r/[email protected]

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ui/cocoa: Split [-QemuCocoaView handleEventLocked:]ui/cocoa.m+49 -331 reply
2/10ui/cocoa: Immediately call [-QemuCocoaView handleMouseEvent:buttons:]ui/cocoa.m+30 -571 reply
3/10ui/cocoa: Release specific mouse buttonsui/cocoa.m+15 -211 reply
4/10ui/cocoa: Scale with NSView instead of Core Graphicsui/cocoa.m+10 -140 replies
5/10ui/cocoa: Fix pause label coordinatesui/cocoa.m+2 -21 reply
6/10ui/cocoa: Let the platform toggle fullscreenui/cocoa.m+181 -2271 reply
7/10ui/cocoa: Remove normalWindowui/cocoa.m+17 -161 reply
8/10ui/cocoa: Make window resizableui/cocoa.m+3 -00 replies
9/10ui/cocoa: Call console_select() with the BQLui/cocoa.m+3 -10 replies
10/10ui/cocoa: Remove stretch_video flagui/cocoa.m+6 -131 reply

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v12 thread

Cover letter [PATCH v12 00/10] ui/cocoa: Use NSWindow's ability to resize

V5 -> V6:
Rebased.

---
Changes in v12:
- Extracted patches "ui/cocoa: Split [-QemuCocoaView handleEventLocked:]", "ui/cocoa: Immediately call [-QemuCocoaView handleMouseEvent:buttons:]" from "ui/cocoa: Release specific mouse buttons". (Peter Maydell)
- Changed the message of patch "ui/cocoa: Call console_select() with the BQL" to refer to [-QemuCocoaView displayConsole:]. (Peter Maydell)
- Added patch "ui/cocoa: Fix pause label coordinates".
- Added patch "ui/cocoa: Remove normalWindow".
- Removed [-QemuCocoaView fixZoomedFullScreenSize:], which turned out unnecessary.
- Simplified references to NSWindow.styleMask.
- Link to v11: https://lore.kernel.org/r/[email protected]

Changes in v11:
- Ensured to reflect screen size changes to bounds
- Link to v10: https://lore.kernel.org/r/[email protected]

Changes in v10:
- Removed relative mouse input scaling.
- Link to v9: https://lore.kernel.org/r/[email protected]

Changes in v9:
- Split patch "ui/cocoa: Use NSWindow's ability to resize" into patches "ui/cocoa: Let the platform toggle fullscreen", "ui/cocoa: Make window resizable", "ui/cocoa: Call console_select() with the BQL".
- Added patch "ui/cocoa: Scale with NSView instead of Core Graphics".
- Rebased.
- Dropped Tested-by: from patch "ui/cocoa: Use NSWindow's ability to resize".
- Link to v8: https://lore.kernel.org/r/[email protected]

Changes in v8:
- Split into three patches. (BALATON Zoltan)
- Removed negative full-screen conditions. (BALATON Zoltan)
- Converted a C++-style comment to C style.
- Link to v7: https://lore.kernel.org/r/[email protected]

Changes in v7:
- Fixed zoom-to-fit option. (Marek Glogowski)
- Link to v6: https://lore.kernel.org/r/[email protected]

---
Akihiko Odaki (10):
ui/cocoa: Split [-QemuCocoaView handleEventLocked:] ui/cocoa: Immediately call [-QemuCocoaView handleMouseEvent:buttons:] ui/cocoa: Release specific mouse buttons
ui/cocoa: Scale with NSView instead of Core Graphics ui/cocoa: Fix pause label coordinates
ui/cocoa: Let the platform toggle fullscreen
ui/cocoa: Remove normalWindow
ui/cocoa: Make window resizable
ui/cocoa: Call console_select() with the BQL
ui/cocoa: Remove stretch_video flag

 ui/cocoa.m | 552 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 242 insertions(+), 310 deletions(-)

---
base-commit: 5005aed8a7e728d028efb40e243ecfc2b4f3df3a
change-id: 20231211-cocoa-576b8639e9bd

Best regards,

Signature · 1 line
Akihiko Odaki <[email protected]>