diff options
author | anekos | 2009-01-07 10:18:59 +0000 |
---|---|---|
committer | anekos | 2009-01-07 10:18:59 +0000 |
commit | 43cbe2d847ad6762d9f2831852f1e4eaefc2e80c (patch) | |
tree | a2174fdefe1eb6d8612630a08e7bdf98934cbc94 /maine_coon.js | |
parent | 356405eedd6979332123fbc2b0903a717919b6ba (diff) | |
download | vimperator-plugins-43cbe2d847ad6762d9f2831852f1e4eaefc2e80c.tar.bz2 |
再起動後に、最大化状態で復帰できるように修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28098 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'maine_coon.js')
-rw-r--r-- | maine_coon.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/maine_coon.js b/maine_coon.js index 23f7bf5..5286c99 100644 --- a/maine_coon.js +++ b/maine_coon.js @@ -38,7 +38,7 @@ let PLUGIN_INFO = <name lang="ja">メインクーン</name> <description>Makes more large screen</description> <description lang="ja">なるべくでかい画面で使えるように</description> - <version>2.0</version> + <version>2.0.1</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <minVersion>2.0pre</minVersion> <maxVersion>2.0pre</maxVersion> @@ -55,6 +55,9 @@ let PLUGIN_INFO = Hide automatically command-line f: Fullscreeen + >|| + :set mainecoon=ac + ||< == Global Variables == maine_coon_targets: Other elements IDs that you want to hide. @@ -79,6 +82,9 @@ let PLUGIN_INFO = f: フルスクリーン "c" と "f" の併用は意味がありません。 + >|| + :set mainecoon=ac + ||< == Global Variables == maine_coon_targets: フルスクリーン時にの非表示にしたい要素のIDを空白区切りで指定します。 @@ -136,7 +142,8 @@ let tagetIDs = (liberator.globalVariables.maine_coon_targets || '').split(/\s+/) width: width, height: height, adjustHeight: adjustHeight, - adjustWidth: adjustWidth + adjustWidth: adjustWidth, + state: window.windowState }; } @@ -164,6 +171,8 @@ let tagetIDs = (liberator.globalVariables.maine_coon_targets || '').split(/\s+/) window.outerWidth = windowInfo.width; window.outerHeight = windowInfo.height + windowInfo.adjustHeight; }); + if (windowInfo.state == window.STATE_MAXIMIZED) + delay(function () window.maximize()); refreshWindow(); } @@ -230,9 +239,7 @@ let tagetIDs = (liberator.globalVariables.maine_coon_targets || '').split(/\s+/) autocommands.add( 'VimperatorEnter', /.*/, - function () { - delay(function () options.get('mainecoon').set(def), 1000) - } + function () delay(function () options.get('mainecoon').set(def), 1000) ); } |