From: Brian P. Hinz Date: Sat, 16 Nov 2019 20:07:34 +0000 (-0500) Subject: Invalidate duplicate screens X-Git-Tag: v1.10.90~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e84186556f4c7281ec057766ac4fe0f64733068;p=tigervnc.git Invalidate duplicate screens --- diff --git a/java/com/tigervnc/rfb/ScreenSet.java b/java/com/tigervnc/rfb/ScreenSet.java index 173dd101..92437da1 100644 --- a/java/com/tigervnc/rfb/ScreenSet.java +++ b/java/com/tigervnc/rfb/ScreenSet.java @@ -64,8 +64,8 @@ public class ScreenSet { return false; if (!refScreen.dimensions.enclosed_by(fb_rect)) return false; - //if (seen_ids.lastIndexOf(refScreen.id) != seen_ids.get(-1)) - // return false; + if (seen_ids.lastIndexOf(refScreen.id) != -1) + return false; seen_ids.add(refScreen.id); }