mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
kill fullscreen code (it dont work)
This commit is contained in:
parent
0c7251fe1d
commit
d79819f1aa
@ -67,45 +67,6 @@ define (require, exports, module) ->
|
||||
title: (text) ->
|
||||
WindowController.window.title = text
|
||||
|
||||
toggleFullscreen: ->
|
||||
if Chrome.fullscreen?
|
||||
Chrome.leaveFullscreen()
|
||||
else
|
||||
Chrome.enterFullscreen()
|
||||
|
||||
leaveFullscreen: ->
|
||||
Chrome.fullscreen = false
|
||||
|
||||
OSX.NSMenu.setMenuBarVisible not OSX.NSMenu.menuBarVisible
|
||||
window = WindowController.window
|
||||
|
||||
enterFullscreen: ->
|
||||
Chrome.fullscreen = true
|
||||
|
||||
OSX.NSMenu.setMenuBarVisible not OSX.NSMenu.menuBarVisible
|
||||
window = WindowController.window
|
||||
|
||||
fullscreenWindow = OSX.NSWindow.alloc.
|
||||
initWithContentRect_styleMask_backing_defer_screen(
|
||||
window.contentRectForFrameRect(window.frame),
|
||||
OSX.NSBorderlessWindowMask,
|
||||
OSX.NSBackingStoreBuffered,
|
||||
true,
|
||||
window.screen)
|
||||
|
||||
contentView = window.contentView
|
||||
window.setContentView OSX.NSView.alloc.init
|
||||
|
||||
fullscreenWindow.setHidesOnDeactivate true
|
||||
fullscreenWindow.setLevel OSX.NSFloatingWindowLevel
|
||||
fullscreenWindow.setContentView contentView
|
||||
fullscreenWindow.setTitle window.title
|
||||
fullscreenWindow.makeFirstResponder null
|
||||
|
||||
fullscreenWindow.makeKeyAndOrderFront null
|
||||
frame = fullscreenWindow.frameRectForContentRect(fullscreenWindow.screen.frame)
|
||||
fullscreenWindow.setFrame_display_animate frame, true, true
|
||||
|
||||
appRoot: ->
|
||||
OSX.NSBundle.mainBundle.resourcePath
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user