aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-09 00:13:54 +0000
committerrowanbeentje <rowan@beent.je>2010-07-09 00:13:54 +0000
commit54c9b6d740c05e9626ebf10b77b4da51726ca6dc (patch)
treea6b093da652561793df5db3c82c0c40f082b1755
parent9be51d1013ea08d82a32c89ade8fd7baa0eee907 (diff)
downloadsequelpro-54c9b6d740c05e9626ebf10b77b4da51726ca6dc.tar.gz
sequelpro-54c9b6d740c05e9626ebf10b77b4da51726ca6dc.tar.bz2
sequelpro-54c9b6d740c05e9626ebf10b77b4da51726ca6dc.zip
- When a window is first opened, tell the tab it has become frontmost after the window has drawn. This addresses odd Exposé artifacts when first setup (Issue #758), as well as toolbar drawing issues when a tab is dragged into a new window.
-rw-r--r--Source/SPAppController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index fdedc1fe..840f78f8 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -463,8 +463,9 @@
// Set the window controller as the window's delegate
[newWindow setDelegate:newWindowController];
- // Show the window
+ // Show the window, and perform frontmost tasks again once the window has drawn
[newWindowController showWindow:self];
+ [[newWindowController selectedTableDocument] didBecomeActiveTabInWindow];
}
/**