summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2013-01-14 09:07:34 +0000
committerManolo Gouy <Manolo>2013-01-14 09:07:34 +0000
commit9e67096dbb79935cb526a825e6f5319aabd4a65c (patch)
tree73bc13734f1e88f6f2a24dcb371f03d3dbadc868
parent482c4a5e0a52cc19396fd931c651dc2d89ea8be4 (diff)
Mac OS: added support for the text input feature introduced in OS 10.7 "Lion" where pressing and holding
some key opens a window with possible accented characters: added [NSView windowLevel] useful for fullscreen windows. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl_cocoa.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 2188c7e6b..49dbb5034 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2100,6 +2100,10 @@ static void q_set_window_title(NSWindow *nsw, const char * name, const char *mi
return 0;
}
+- (NSInteger)windowLevel {
+ return [[self window] level];
+}
+
- (NSInteger)conversationIdentifier {
return identifier;
}