summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-13 13:58:04 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-13 13:58:04 +0000
commit2b179141643e96e622cdf784077d47cc7b94c660 (patch)
treea922320d2dd055856e20e248ab31e9d04a6f5143 /bin
parentb1bb02f90ad6d37647bea0b089d88ed09c9f2367 (diff)
downloaddrak3d-2b179141643e96e622cdf784077d47cc7b94c660.tar
drak3d-2b179141643e96e622cdf784077d47cc7b94c660.tar.gz
drak3d-2b179141643e96e622cdf784077d47cc7b94c660.tar.bz2
drak3d-2b179141643e96e622cdf784077d47cc7b94c660.tar.xz
drak3d-2b179141643e96e622cdf784077d47cc7b94c660.zip
add --force option to force 3D desktop enabling even if not supported
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drak3d4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/drak3d b/bin/drak3d
index 531ddb9..14abbe0 100755
--- a/bin/drak3d
+++ b/bin/drak3d
@@ -43,12 +43,14 @@ my $running_wm = any::running_window_manager();
my $o_method;
my $o_wm;
+my $force;
GetOptions(
"method=s" => \$o_method,
"wm=s" => \$o_wm,
+ "force" => \$force,
) or warn "invalid options";
-my $use_arguments = !$o_method || $glx->{capabilities}{$o_method};
+my $use_arguments = $force || !$o_method || $glx->{capabilities}{$o_method};
$glx->{method} = $use_arguments && $o_method if $o_method;
$glx->{wm} = $use_arguments && $o_wm if $o_wm;