[PR #9168] fix(desktop): toggle maximizing window with double click on mac #13011

Closed
opened 2026-02-16 18:17:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9168

State: closed
Merged: No


What does this PR do?

Fixes #9167

Simple change that allows Mac users to double-click to maximize the window by detecting double-clicks in the title bar (and adding allow-toggle-maximize capability to the Tauri capabilities config).

This fix only works once the window has actually fully initialized, but this was a pre-existing issue that also prevents the user from re-positioning the window by dragging while the initialization is happening. I think this would also be nice to look at but feels out-of-scope for this quick fix. Also, this change only addresses the issue on Mac.

Before fix:

https://github.com/user-attachments/assets/167bebb5-54fe-48da-b5ab-c6a49bf61e7c

After fix:

https://github.com/user-attachments/assets/44ba8778-b903-47ac-9b8a-0873ede37797

How did you verify your code works?

Tested the fix locally on my Mac and made sure that lint/typecheck/tests passed

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9168 **State:** closed **Merged:** No --- ### What does this PR do? Fixes #9167 Simple change that allows Mac users to double-click to maximize the window by detecting double-clicks in the title bar (and adding `allow-toggle-maximize capability` to the Tauri capabilities config). This fix only works once the window has actually fully initialized, but this was a pre-existing issue that also prevents the user from re-positioning the window by dragging while the initialization is happening. I think this would also be nice to look at but feels out-of-scope for this quick fix. Also, this change only addresses the issue on Mac. Before fix: https://github.com/user-attachments/assets/167bebb5-54fe-48da-b5ab-c6a49bf61e7c After fix: https://github.com/user-attachments/assets/44ba8778-b903-47ac-9b8a-0873ede37797 ### How did you verify your code works? Tested the fix locally on my Mac and made sure that lint/typecheck/tests passed
yindo added the pull-request label 2026-02-16 18:17:53 -05:00
yindo closed this issue 2026-02-16 18:17:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13011