diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2019-11-16 15:07:34 -0500 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2019-11-16 15:08:52 -0500 |
commit | 6e84186556f4c7281ec057766ac4fe0f64733068 (patch) | |
tree | 5f24bad1ca3c1d976017cc7f717e67f50116537f | |
parent | bbbb67ee32b4ce909157ffc5af13a449059d4cdf (diff) | |
download | tigervnc-6e84186556f4c7281ec057766ac4fe0f64733068.tar.gz tigervnc-6e84186556f4c7281ec057766ac4fe0f64733068.zip |
Invalidate duplicate screens
-rw-r--r-- | java/com/tigervnc/rfb/ScreenSet.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |