]> source.dussan.org Git - tigervnc.git/commitdiff
Invalidate duplicate screens
authorBrian P. Hinz <bphinz@users.sf.net>
Sat, 16 Nov 2019 20:07:34 +0000 (15:07 -0500)
committerBrian P. Hinz <bphinz@users.sf.net>
Sat, 16 Nov 2019 20:08:52 +0000 (15:08 -0500)
java/com/tigervnc/rfb/ScreenSet.java

index 173dd101f4a7bb960d89d84c5723b0b43860fc04..92437da1a98a4a9f890e54bb27618ae1bcba877e 100644 (file)
@@ -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);
       }