mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-01 17:11:14 +00:00
Merge pull request #149 from GerMalaz/4k_displays_bigger_menu
Bigger menu for 4k (or bigger) displays
This commit is contained in:
commit
b302a7724f
1 changed files with 6 additions and 0 deletions
|
@ -1276,10 +1276,16 @@ sub setup_repeat() {
|
|||
|
||||
sub create_windows() {
|
||||
my ($self) = @_;
|
||||
my ($screen_height) = $xdisplay->{height_in_pixels};
|
||||
my ($screen_width) = $xdisplay->{width_in_pixels};
|
||||
$self->debug( 2, "create_windows: started" );
|
||||
|
||||
$windows{main_window}
|
||||
= MainWindow->new( -title => "ClusterSSH", -class => 'cssh', );
|
||||
if ($screen_height * $screen_width >= 8294400) # display 4k or bigger
|
||||
{
|
||||
$windows{main_window}->optionAdd('*font', 'Nimbus 14'); # better for 4k displays
|
||||
}
|
||||
$windows{main_window}->withdraw; # leave withdrawn until needed
|
||||
|
||||
if ( defined( $self->config->{console_position} )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue