From f0702c02e2ca3402cc0f8add238f67a3f8f1cda4 Mon Sep 17 00:00:00 2001 From: Rainer Koenig Date: Mon, 11 Apr 2022 13:18:14 +0200 Subject: [PATCH] Enlarge visible windows only in fullscreen method - 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. --- consoles/localXvnc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consoles/localXvnc.pm b/consoles/localXvnc.pm index 13d01bfcdf1..ed5647feef9 100644 --- a/consoles/localXvnc.pm +++ b/consoles/localXvnc.pm @@ -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