Skip to content

Commit d511917

Browse files
committed
Resoving else brace on wrong line for cocoa_window
1 parent 4efc3e8 commit d511917

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/platform/windowing/cocoa_window.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ - (void)windowWillClose:(NSNotification *)n {
152152
NSRect r = NSMakeRect(sm->lockCursor.x, sm->lockCursor.y, 0, 0);
153153
NSRect sr = [w convertRectToScreen:r];
154154
CGWarpMouseCursorPosition(sr.origin);
155-
} else {
156-
shared_mem_add_event(sm, (WindowEvent){
157-
.type = WINDOW_EVENT_TYPE_MOUSE_MOVE,
158-
.mouseMove = { x, y }
159-
});
160155
}
156+
} else {
157+
shared_mem_add_event(sm, (WindowEvent){
158+
.type = WINDOW_EVENT_TYPE_MOUSE_MOVE,
159+
.mouseMove = { x, y }
160+
});
161161
}
162162
} break;
163163

0 commit comments

Comments
 (0)