diff options
author | rowanbeentje <rowan@beent.je> | 2013-06-13 18:38:33 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-06-13 18:38:33 +0000 |
commit | 33dbe8d35c3e681c5a8cfd223be50ae7c769cf15 (patch) | |
tree | cfc51a04f989bbb7db3555c5243b4f6b4cc5e483 /Frameworks/PSMTabBar/PSMTabBarControl.h | |
parent | 08036ae8c5e62d843831b43447f12ad6613e728b (diff) | |
download | sequelpro-33dbe8d35c3e681c5a8cfd223be50ae7c769cf15.tar.gz sequelpro-33dbe8d35c3e681c5a8cfd223be50ae7c769cf15.tar.bz2 sequelpro-33dbe8d35c3e681c5a8cfd223be50ae7c769cf15.zip |
- Fix window update notification action within PSMTabBar, only redrawing the tab bar if the window state has changed. This significantly reduces CPU usage when mousing around the window by avoiding needless draws, and also addresses graphics corruption/artefacts when drawing above a blurred background, addressing Issue #1678
Diffstat (limited to 'Frameworks/PSMTabBar/PSMTabBarControl.h')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabBarControl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.h b/Frameworks/PSMTabBar/PSMTabBarControl.h index d2cbc534..9aebddad 100644 --- a/Frameworks/PSMTabBar/PSMTabBarControl.h +++ b/Frameworks/PSMTabBar/PSMTabBarControl.h @@ -111,7 +111,12 @@ enum { BOOL _awakenedFromNib; NSInteger _tabBarWidth; NSTimer *_showHideAnimationTimer; - + + // Tracking last window state for update draws + BOOL _lastWindowIsMainCheck; + BOOL _lastAttachedWindowIsMainCheck; + BOOL _lastAppIsActiveCheck; + // drag and drop NSEvent *_lastMouseDownEvent; // keep this for dragging reference BOOL _didDrag; |