]> khamidou — GitHub mirrors - electron.git/commit
Fixes #2810: correct look of hidden-inset windows in full screen.
authorjaanus <jaanus@gmail.com>
Mon, 21 Dec 2015 18:55:23 +0000 (20:55 +0200)
committerjaanus <jaanus@gmail.com>
Tue, 22 Dec 2015 18:31:55 +0000 (20:31 +0200)
commitaa2f7aaf3a19a61f141d9788dfcde9e0b3164897
tree9ac7a34ab342d7a3d85b6db7ce3f5573d2aca871
parentc68e38f480f47142265b162fd961a4b9184738ef
Fixes #2810: correct look of hidden-inset windows in full screen.

`hidden` and `hidden-inset` windows differ only by the hidden-inset window having a toolbar. Yet, the toolbar yields an incorrect look in fullscreen mode. So, we hide and recreate the toolbar for such windows when going to/from fullscreen.

There are some visible artifacts during the fullscreen animations, as the toolbar gets created and destroyed. When entering fullscreen, you see a toolbar that then disappears. When going back to normal window, you see the traffic light buttons jump around a little bit. Yet, this is definitely better than the current broken fullscreen look.
atom/browser/native_window_mac.h
atom/browser/native_window_mac.mm