aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2014-10-05 14:20:17 +0200
committerJan Djärv2014-10-05 14:20:17 +0200
commit73267792f042b6b3e0cf00914f2f98e2e92c181c (patch)
tree954dc363d68b32fe9d873310d156dbb447cc5e8f
parent6a4b1b17293ed0e4c7f7f3a33e058f63ccd290eb (diff)
downloademacs-73267792f042b6b3e0cf00914f2f98e2e92c181c.tar.gz
emacs-73267792f042b6b3e0cf00914f2f98e2e92c181c.zip
Add ns-use-fullscreen-animation for non-native fullscreen on NS.
* nsterm.m (syms_of_nsterm): ns-use-fullscreen-animation is new. (toggleFullScreen:): Use ns-use-fullscreen-animation for animate.
-rw-r--r--src/ChangeLog3
-rw-r--r--src/nsterm.m10
2 files changed, 11 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 59d28aad8bc..fe0077b92b5 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12014-10-05 Jan Djärv <jan.h.d@swipnet.se> 12014-10-05 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * nsterm.m (syms_of_nsterm): ns-use-fullscreen-animation is new.
4 (toggleFullScreen:): Use ns-use-fullscreen-animation for animate.
5
3 * macfont.m: Fix indentation and import changes from macport 6 * macfont.m: Fix indentation and import changes from macport
4 24.3.94. 7 24.3.94.
5 (macfont_closest_traits_index): New function. 8 (macfont_closest_traits_index): New function.
diff --git a/src/nsterm.m b/src/nsterm.m
index d40541f5125..6e25716b239 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6529,7 +6529,7 @@ if (cols > 0 && rows > 0)
6529 [fw makeFirstResponder:self]; 6529 [fw makeFirstResponder:self];
6530 [w orderOut:self]; 6530 [w orderOut:self];
6531 r = [fw frameRectForContentRect:[screen frame]]; 6531 r = [fw frameRectForContentRect:[screen frame]];
6532 [fw setFrame: r display:YES animate:YES]; 6532 [fw setFrame: r display:YES animate:ns_use_fullscreen_animation];
6533 [self windowDidEnterFullScreen:nil]; 6533 [self windowDidEnterFullScreen:nil];
6534 [fw display]; 6534 [fw display];
6535 } 6535 }
@@ -6561,7 +6561,7 @@ if (cols > 0 && rows > 0)
6561 FRAME_TOOLBAR_HEIGHT (f) = tobar_height; 6561 FRAME_TOOLBAR_HEIGHT (f) = tobar_height;
6562 6562
6563 [self windowWillExitFullScreen:nil]; 6563 [self windowWillExitFullScreen:nil];
6564 [fw setFrame: [w frame] display:YES animate:YES]; 6564 [fw setFrame: [w frame] display:YES animate:ns_use_fullscreen_animation];
6565 [fw close]; 6565 [fw close];
6566 [w makeKeyAndOrderFront:NSApp]; 6566 [w makeKeyAndOrderFront:NSApp];
6567 [self windowDidExitFullScreen:nil]; 6567 [self windowDidExitFullScreen:nil];
@@ -7765,6 +7765,12 @@ Default is t for OSX >= 10.7, nil otherwise. */);
7765#endif 7765#endif
7766 ns_last_use_native_fullscreen = ns_use_native_fullscreen; 7766 ns_last_use_native_fullscreen = ns_use_native_fullscreen;
7767 7767
7768 DEFVAR_BOOL ("ns-use-fullscreen-animation", ns_use_fullscreen_animation,
7769 doc: /*Non-nil means use animation on non-native fullscreen.
7770For native fullscreen, this does nothing.
7771Default is nil. */);
7772 ns_use_fullscreen_animation = NO;
7773
7768 DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace, 7774 DEFVAR_BOOL ("ns-use-srgb-colorspace", ns_use_srgb_colorspace,
7769 doc: /*Non-nil means to use sRGB colorspace on OSX >= 10.7. 7775 doc: /*Non-nil means to use sRGB colorspace on OSX >= 10.7.
7770Note that this does not apply to images. 7776Note that this does not apply to images.