Comment 4 for bug 915761

Revision history for this message
Garth Corral (gcorral) wrote :

This issue persists for me as well, when compiled on my 10.9.x system. The following patch to the overlay.mm linked in the referenced instructions fixes the issue for me.

--- overlay.mm.orig 2011-12-23 13:05:06.000000000 -0800
+++ overlay.mm 2014-07-01 16:54:45.000000000 -0700
@@ -69,7 +69,7 @@
     m_window = dc->GetWindow();
  m_overlayWindow = m_window->MacGetTopLevelWindowRef();

- NSRect box = [m_overlayWindow frame];
+ NSRect box = [m_overlayWindow convertRectFromScreen:[m_overlayWindow frame]];

  if( [m_overlayWindow isVisible] )
  {
@@ -107,7 +107,7 @@
     // todo : don't dispose, only hide and reposition on next run
     if (m_overlayWindow && [m_overlayWindow isVisible])
     {
- NSRect box = [m_overlayWindow frame];
+ NSRect box = [m_overlayWindow convertRectFromScreen:[m_overlayWindow frame]];

   [m_overlayWindow discardCachedImage];
   [m_overlayWindow cacheImageInRect:box];