From 88e897cc03a36b083e8656bf4b9f32ac1a1aa5c7 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 7 Jun 2012 12:02:31 +0100 Subject: [PATCH] Add patch and options for 'true' Lion fullscreen mode --- build-emacs-for-osx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/build-emacs-for-osx b/build-emacs-for-osx index 04cc697..e5ae179 100755 --- a/build-emacs-for-osx +++ b/build-emacs-for-osx @@ -47,8 +47,16 @@ def patches(opts = {}) p = [] if opts[:fullscreen] - p << 'https://raw.github.com/gist/1746342/' + - '702dfe9e2dd79fddd536aa90d561efdeec2ba716' + if !opts[:lion] + # Use non-Lion fullscreen patch. Works on Lion, but doesn't integrate + # with Mission Control like a "true" Lion Fullscreen app. + p << 'https://raw.github.com/gist/1746342/' + + '702dfe9e2dd79fddd536aa90d561efdeec2ba716' + else + # Use a "true" Lion Fullscreen patch. + p << 'https://raw.github.com/gist/2238260/' + + 'e44224323706d3fa8b435e75a0da7b461801ae5f' + end end if opts[:srgb] @@ -65,11 +73,19 @@ end # def parse_options - options = {:fullscreen => true, :srgb => true} + options = { + :lion => false, + :fullscreen => true, + :srgb => true + } OptionParser.new do |opts| opts.banner = "Usage: ./build-emacs-for-osx [options] [branch/tag/sha]" + opts.on("--lion", "Enable 'true' Lion fullscreen mode.") do + options[:lion] = true + end + opts.on("--no-fullscreen", "Skip fullscreen patch.") do options[:fullscreen] = false end