From 839cad0c2a703d93f99b624049f1286ec8eeb5de Mon Sep 17 00:00:00 2001 From: Alfred Xing Date: Thu, 8 May 2014 20:36:46 -0700 Subject: [PATCH] Add `fullscreen` class to body when in full screen Add a `fullscreen` class to body when full screen is triggered, as suggested by @orderedlist in #1694 --- src/atom.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/atom.coffee b/src/atom.coffee index 925e9bd3a..0a1783df4 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -473,6 +473,7 @@ class Atom extends Model # Public: Set the full screen state of the current window. setFullScreen: (fullScreen=false) -> ipc.send('call-window-method', 'setFullScreen', fullScreen) + if fullScreen then document.body.classList.add("fullscreen") else document.body.classList.remove("fullscreen") # Public: Is the current window in full screen mode? isFullScreen: ->