diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-01-28 16:36:58 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2013-01-28 16:36:58 +0000 |
commit | f9bdbf93887313a79528696607d96140f33cbd84 (patch) | |
tree | 2981a41f81daba5c33e7131a30eb61fef42bfa4a /tikzit/src/gtk/Application.m | |
parent | b8c6a1cf4fd38820549976cf5f7b8fffb9b1248d (diff) |
Associate utility windows with current main window
This allows the window manager to raise the windows as a group, for
example.
Diffstat (limited to 'tikzit/src/gtk/Application.m')
-rw-r--r-- | tikzit/src/gtk/Application.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tikzit/src/gtk/Application.m b/tikzit/src/gtk/Application.m index cdf4b4e..61fb85d 100644 --- a/tikzit/src/gtk/Application.m +++ b/tikzit/src/gtk/Application.m @@ -345,6 +345,8 @@ Application* app = nil; object:window]; if ([openWindows count] == 0) { gtk_main_quit(); + } else { + [self setActiveWindow:[openWindows objectAtIndex:0]]; } } @@ -374,6 +376,9 @@ Application* app = nil; [contextWindow setDocument:[window document]]; + [contextWindow setTransientFor:window]; + [toolBox setTransientFor:window]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(windowDocumentChanged:) |