mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-11 07:53:20 +12:00
Issue #48: added click through option to command line parameters.
This commit is contained in:
parent
478adfab19
commit
f58ffd1815
|
@ -116,6 +116,9 @@ namespace OnTopReplica.StartupOptions {
|
|||
.Add("clickForwarding", "Enables click forwarding.", s => {
|
||||
options.EnableClickForwarding = true;
|
||||
})
|
||||
.Add("clickThrough", "Enables click through.", s => {
|
||||
options.EnableClickThrough = true;
|
||||
})
|
||||
.Add("chromeOff", "Disables the window's chrome (border).", s => {
|
||||
options.DisableChrome = true;
|
||||
})
|
||||
|
|
|
@ -53,6 +53,8 @@ namespace OnTopReplica.StartupOptions {
|
|||
|
||||
public bool EnableClickForwarding { get; set; }
|
||||
|
||||
public bool EnableClickThrough { get; set; }
|
||||
|
||||
public byte Opacity { get; set; }
|
||||
|
||||
public bool DisableChrome { get; set; }
|
||||
|
@ -162,6 +164,9 @@ namespace OnTopReplica.StartupOptions {
|
|||
if (EnableClickForwarding) {
|
||||
form.ClickForwardingEnabled = true;
|
||||
}
|
||||
if (EnableClickThrough) {
|
||||
form.ClickThroughEnabled = true;
|
||||
}
|
||||
|
||||
form.IsChromeVisible = !DisableChrome;
|
||||
|
||||
|
|
Loading…
Reference in a new issue