Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
06ad52f
Merge pull request #1 from PhoenicisOrg/master
ImperatorS79 Aug 28, 2017
86fd07c
Update script.js
ImperatorS79 Aug 28, 2017
a6f232b
Merge pull request #2 from PhoenicisOrg/master
ImperatorS79 Aug 28, 2017
a80aa84
Merge pull request #3 from PhoenicisOrg/master
ImperatorS79 Sep 26, 2017
6da4a59
Merge pull request #4 from PhoenicisOrg/master
ImperatorS79 Mar 19, 2018
4a11f65
Merge pull request #8 from PhoenicisOrg/master
ImperatorS79 Apr 9, 2018
b2d5724
Merge pull request #9 from PhoenicisOrg/master
ImperatorS79 May 7, 2018
b7d1f0f
Merge pull request #10 from PhoenicisOrg/master
ImperatorS79 May 13, 2018
533df6e
Merge pull request #11 from PhoenicisOrg/master
ImperatorS79 May 22, 2018
186e4ed
Merge pull request #12 from PhoenicisOrg/master
ImperatorS79 May 29, 2018
99cf1db
Merge pull request #13 from PhoenicisOrg/master
ImperatorS79 Jun 13, 2018
87999b4
Merge pull request #15 from PhoenicisOrg/master
ImperatorS79 Oct 10, 2018
610b258
Merge pull request #16 from PhoenicisOrg/master
ImperatorS79 Oct 12, 2018
ad2ea01
Merge pull request #17 from PhoenicisOrg/master
ImperatorS79 Jan 12, 2019
2e53a22
Merge pull request #18 from PhoenicisOrg/master
ImperatorS79 Jan 18, 2019
10f93ca
Merge pull request #20 from PhoenicisOrg/master
ImperatorS79 Feb 2, 2019
ade899d
Merge pull request #21 from PhoenicisOrg/master
ImperatorS79 Feb 27, 2019
db6e1b9
Merge pull request #23 from PhoenicisOrg/master
ImperatorS79 May 9, 2019
f0312d9
Merge pull request #25 from PhoenicisOrg/master
ImperatorS79 May 16, 2019
ca61e52
Add plugin for UseTakeFocus
ImperatorS79 May 16, 2019
85bfc25
Update script.js
ImperatorS79 May 16, 2019
f31be0c
Update script.js
ImperatorS79 May 16, 2019
8ea7f54
Update script.js
ImperatorS79 May 16, 2019
06dd896
Update script.json
ImperatorS79 May 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Engines/Wine/Plugins/UseTakeFocus/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
include("engines.wine.engine.object");
include("engines.wine.plugins.regedit");

/**
* force the UseTakeFocus
* @param {string} mode ("Y" or "N")
* @returns {Wine} Wine object
*/
Wine.prototype.UseTakeFocus = function (mode) {
var regeditFileContent =
"REGEDIT4\n" +
"\n" +
"[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]\n" +
"\"UseTakeFocus\"=\"" + mode + "\"\n";
this.regedit().patch(regeditFileContent);
return this;
};
11 changes: 11 additions & 0 deletions Engines/Wine/Plugins/UseTakeFocus/script.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"scriptName" : "Use Take Focus",
"id" : "engines.wine.plugins.usetakefocus",
"compatibleOperatingSystems" : [
"LINUX",
"MACOSX"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only for OSX?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

triggered

],
"testingOperatingSystems" : [],
"free" : true,
"requiresPatch" : false
}
9 changes: 2 additions & 7 deletions Engines/Wine/Settings/UseTakeFocus/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include("engines.wine.engine.object");
include("engines.wine.plugins.regedit");
include("engines.wine.plugins.usetakefocus");

/**
* setting to enable/disable UseTakeFocus
Expand Down Expand Up @@ -31,15 +32,9 @@ var settingImplementation = {
.deleteValue("HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver", "UseTakeFocus");
}
else {
var regeditFileContent =
"REGEDIT4\n" +
"\n" +
"[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]\n" +
"\"UseTakeFocus\"=\"" + this._registryValues[optionIndex] + "\"\n";
new Wine()
.prefix(container)
.regedit()
.patch(regeditFileContent);
.UseTakeFocus(this._registryValues[optionIndex]);
}
}
};
Expand Down