diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/drak3d | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -41,11 +41,17 @@ sub exit_program { $in ? $in->exit(@_) : exit(@_) } my $glx = Xconfig::glx::detect_may_install($do_pkgs) or exit_program(); my $running_wm = any::running_window_manager(); +my $o_method; +my $o_wm; GetOptions( - "method=s" => \$glx->{method}, - "wm=s" => \$glx->{wm}, + "method=s" => \$o_method, + "wm=s" => \$o_wm, ) or warn "invalid options"; +my $use_arguments = !$o_method || $glx->{capabilities}{$o_method}; +$glx->{method} = $use_arguments && $o_method if $o_method; +$glx->{wm} = $use_arguments && $o_wm if $o_wm; + my @advanced_settings = ( [ N_("A graphical server supporting OpenGL compositing should be selected."), 'methods', 'method', \@Xconfig::glx::gl_compositing_servers, 1 ], [ N_("An OpenGL compositing window manager should be selected. It provides 3D desktop and compositing effects in window management, such as translucent windows and moving effects."), 'wms', 'wm', \@Xconfig::glx::gl_compositing_wms, 0 ], |