# Kiosk mode and drawing issue

**URL:** <https://forum.juce.com/t/kiosk-mode-and-drawing-issue/16131>\
**Category:** MacOSX and iOS\
**Created:** [December 4, 2015, 3:36am UTC](https://forum.juce.com/t/kiosk-mode-and-drawing-issue/16131 "2015-12-04T03:36:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IHK\_Codex](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@IHK\_Codex](https://forum.juce.com/u/IHK_Codex)\
**Post date:** [December 4, 2015, 3:36am UTC](https://forum.juce.com/t/kiosk-mode-and-drawing-issue/16131/1 "2015-12-04T03:36:44Z")

</div>

**Issue:&nbsp;** Graphical glitch occurs when entering full screen mode while drawing

**Affects:&nbsp;** Modified JUCE master tip (https://github.com/ihk/JUCEKioskModeBug)&nbsp;edc35db 4/12/15

**Environment:&nbsp;** OSX 10.10.5 Yosemite. Macbook Pro 15" Retina Mid-2014

**Steps:**

1. Checkout&nbsp;https://github.com/ihk/JUCEKioskModeBug

2. Run JUCE demo application. Make sure you are on the introduction screen with the JUCE logo.

3. Full screen it by pressing Command+F. Graphical glitch occurs and UI&nbsp;freezes (see attached screenshot). It seems like it tried to go into full screen mode (background goes black, menu bar dissapears) but froze half way...?

[![](http://i.imgur.com/wqzdJXn.jpg)](http://i.imgur.com/wqzdJXn.jpg)

**Information:&nbsp;** This has always been a bug in the JUCE introduction screen page however it has since dissapeared after commit&nbsp;d06fc22 (Pimped the demo app with some new images). By reverting the JUCE logo back to the old one in MainWindow.cpp and by repainting the logo at 60 fps by&nbsp;reverting commit&nbsp;26ff85a (Demo app: Lowered the frame rate of the welcome screen to save power if people leave it running) we can reproduce it. You can see the changes in commit&nbsp;edc35db (https://github.com/ihk/JUCEKioskModeBug).

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 7, 2015, 11:10am UTC](https://forum.juce.com/t/kiosk-mode-and-drawing-issue/16131/2 "2015-12-07T11:10:11Z")

</div>

I managed to reproduce this, but it's a really peculiar one...

I actually think it must be an Apple&nbsp;bug, because as far as I can tell, it gets triggered depending on whether the window does any redrawing while the OS is animating it into its new position, and also&nbsp;how much work is happening in the paint method.&nbsp;

Because the welcome screen of the juce demo runs continuous 60fps animation, and draws some complex paths, that seems to trigger the bug, but if you comment-out some of the work that happens in the paint routine (e.g. stop it drawing the DNA strands, but allow it to keep redrawing the logo), then the problem goes away! Likewise if you reduce the timer frequency of the animation down to 30fps, then that also "fixes" it.

Really not sure what I could do about it! I'm still on 10.10 myself, but have you tried in 10.11? Could have been fixed already in the OS..

---

<div class="post-metadata">

**Author:** ![IHK\_Codex](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@IHK\_Codex](https://forum.juce.com/u/IHK_Codex)\
**Post date:** [December 7, 2015, 11:51am UTC](https://forum.juce.com/t/kiosk-mode-and-drawing-issue/16131/3 "2015-12-07T11:51:19Z")

</div>

Hi Jules,

&nbsp;

Thanks for the reply.

&nbsp;

Haven't tried 10.11. Unfortunate there is no easy fix.&nbsp;I will see what I can do on my end to workaround this...

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 7, 2015, 11:54am UTC](https://forum.juce.com/t/kiosk-mode-and-drawing-issue/16131/4 "2015-12-07T11:54:24Z")

</div>

Yeah, it's very odd. I'd expect a lot of OSX apps to suffer from the same problem, as it doesn't seem to be specific to anything we do in juce.
