~sil2100/unity/ubuntu_quantal_fixes

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/unityshell.cpp

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2012-07-16 13:26:02 UTC
  • Revision ID: lukasz.zemczak@canonical.com-20120716132602-zcebsx6o8idzg82r
panel and launcher blinks when using libreoffice presenter/spreadsheet
(LP: #1024459)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1253
1253
   * need to. Doing so on every frame causes Nux to hog the GPU and slow down
1254
1254
   * ALL rendering. (LP: #988079)
1255
1255
   */
1256
 
  bool force = forcePaintOnTop() || PluginAdapter::Default()->IsExpoActive();
1257
 
  doShellRepaint = force || !(region.isEmpty() || wt->GetDrawList().empty());
 
1256
  bool force = forcePaintOnTop();
 
1257
  doShellRepaint = force ||
 
1258
                   ( !region.isEmpty() &&
 
1259
                     ( !wt->GetDrawList().empty() ||
 
1260
                       (mask & PAINT_SCREEN_FULL_MASK)
 
1261
                     )
 
1262
                   );
1258
1263
 
1259
1264
  allowWindowPaint = true;
1260
1265
  _last_output = output;