Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For some reason this Package does not support borderless windows (called on NSWindow 0x11c627e90 which returned NO from -[NSWindow canBecomeKeyWindow] ) #10

Open
ukushu opened this issue Jul 30, 2023 · 0 comments

Comments

@ukushu
Copy link

ukushu commented Jul 30, 2023

2023-07-30 05:00:14.577026+0300 Pixie[68109:3129802] [Window] Warning: -[NSWindow makeKeyWindow] called on NSWindow 0x11c627e90 which returned NO from -[NSWindow canBecomeKeyWindow].
2023-07-30 05:00:14.578721+0300 Pixie[68109:3129802] [Window] Warning: Window NSWindow 0x11c627e90 ordered front from a non-active application and may order beneath the active application's windows.
2023-07-30 05:00:16.234815+0300 Pixie[68109:3129802] [Window] Warning: -[NSWindow makeKeyWindow] called on NSWindow 0x11c627e90 which returned NO from -[NSWindow canBecomeKeyWindow].

macOS: 13.3.1 (22E261)
XCode: Version 14.3 (14E222b)

App/Window is active, but created from AppDelegate manually:

import SwiftUI
import MacMenuBar

@main
struct PixieApp: App {
    @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate : AppDelegate
    
    init() {
        appDelegate.showMainWnd()
        setMenuBar(to: MainMenuBar(appDelegate: appDelegate))
    }
//////
}

[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/XpoH3.jpg


This is strange, as app must to have main menu even if there are no windows in the app is active. Something with package is wrong.

@ukushu ukushu changed the title ordered front from a non-active application and may order beneath the active application's windows. called on NSWindow 0x11c627e90 which returned NO from -[NSWindow canBecomeKeyWindow]. Jul 30, 2023
@ukushu ukushu changed the title called on NSWindow 0x11c627e90 which returned NO from -[NSWindow canBecomeKeyWindow]. For some reason this Package does not support borderless windows (called on NSWindow 0x11c627e90 which returned NO from -[NSWindow canBecomeKeyWindow] ) Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant