Remove pointless code
This commit is contained in:
parent
56e63baf5a
commit
3483722475
@ -2461,9 +2461,9 @@ bool _glfwPlatformToggleFullscreen(_GLFWwindow* w, unsigned int flags) {
|
|||||||
[[NSApplication sharedApplication] setPresentationOptions: NSApplicationPresentationDefault];
|
[[NSApplication sharedApplication] setPresentationOptions: NSApplicationPresentationDefault];
|
||||||
w->ns.in_traditional_fullscreen = false;
|
w->ns.in_traditional_fullscreen = false;
|
||||||
}
|
}
|
||||||
// for some reason despite calling this selector, the window doesnt actually get keyboard focus till you click on it.
|
// At this point keyboard input does not work even though isKeyWindow returns true
|
||||||
// presumably a bug with NSWindowStyleMaskBorderless windows
|
// Calling makeKeyAndOrderFront also has no effect. Neither does calling becomeKeyWindow
|
||||||
[window performSelector:@selector(makeKeyAndOrderFront:) withObject:nil afterDelay:0];
|
// Calling them after an interval with performSelector also has no effect
|
||||||
} else {
|
} else {
|
||||||
bool in_fullscreen = sm & NSWindowStyleMaskFullScreen;
|
bool in_fullscreen = sm & NSWindowStyleMaskFullScreen;
|
||||||
if (!(in_fullscreen)) {
|
if (!(in_fullscreen)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user