Skip to content

Commit

Permalink
Enlarge visible windows only in fullscreen method
Browse files Browse the repository at this point in the history
- So far this method was determining the window_id of the window
  to resize to fullscreen by limiting the list to 1 entry. This could
  select the wrong window, resulting in problems that
  https://progress.opensuse.org/issues/106514 wants to fix.
- now we use --onlyvisible to select the visible window only.
  • Loading branch information
rakoenig committed Apr 12, 2022
1 parent 112ac9e commit f0702c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consoles/localXvnc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sub fullscreen ($self, $args) {
die "Missing 'xdotool'" unless $xdotool;

# search for YaST Window and grab the id
my $window_id = qx"DISPLAY=$display $xdotool search --sync --limit 1 --name $window_name";
my $window_id = qx"DISPLAY=$display $xdotool search --sync --onlyvisible --name $window_name";
$window_id =~ s/\D//g;

# resize and move window to fit in icewm
Expand Down

0 comments on commit f0702c0

Please sign in to comment.