mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-23 06:49:24 +01:00
refactor: pinning window won't set CanJoinAllSpaces on macOS (#854)
This commit reverts the logic introduced ine7dd27c744: > Pinning the main window would bring "NSWindowCollectionBehaviorCanJoinAllSpaces" > back to make it really stay pinned across all the spaces. Commit6bc78b41ef (diff-b55e9c1de63ea370ce736826e4dea5685bfa3992d8dee58427337e68b71a1fc1)did a tiny refactor to the frontend code merged in the above commit, these changes are reverted as well. We revert these changes because we observed an issue with window focus, and we don't know the root cause and how to fix the issue either. The following change is kept because we don't want to hit this NS panel bug[1]. But if the issue still exists after this commit, it will be removed as well. In "src-tauri/src/setup/mac.rs": ```diff panel.set_collection_behaviour( - NSWindowCollectionBehavior::NSWindowCollectionBehaviorCanJoinAllSpaces + NSWindowCollectionBehavior::NSWindowCollectionBehaviorMoveToActiveSpace ``` [1]: https://github.com/ahkohd/tauri-nspanel/issues/76
This commit is contained in:
@@ -58,10 +58,6 @@ export const createWebAdapter = (): WebPlatformAdapter => {
|
||||
console.log("Web mode simulated set always on top", isPinned);
|
||||
},
|
||||
|
||||
async toggleMoveToActiveSpaceAttribute() {
|
||||
console.log("Web mode simulated toggle move to active space attribute");
|
||||
},
|
||||
|
||||
async checkScreenRecordingPermission() {
|
||||
console.log("Web mode simulated check screen recording permission");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user