mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
💄
This commit is contained in:
parent
a0e2b7a6e9
commit
458a6a7310
@ -1077,7 +1077,7 @@ fn window_fullscreen_changed(this: &Object, is_fullscreen: bool) {
|
||||
extern "C" fn window_did_change_key_status(this: &Object, selector: Sel, _: id) {
|
||||
let window_state = unsafe { get_window_state(this) };
|
||||
let window_state_borrow = window_state.borrow();
|
||||
let is_active = unsafe { window_state_borrow.native_window.isKeyWindow() as bool };
|
||||
let is_active = unsafe { window_state_borrow.native_window.isKeyWindow() == YES };
|
||||
|
||||
// When opening a pop-up while the application isn't active, Cocoa sends a spurious
|
||||
// `windowDidBecomeKey` message to the previous key window even though that window
|
||||
|
Loading…
Reference in New Issue
Block a user