Comment 3 for bug 884564

Revision history for this message
Jammy Zhou (jammy-zhou) wrote :

@Jay

IMHO, the simplest fix for this issue is attached to use bottom monitor info to set strut for the panel on bottom monitor. Please check if you can apply this change. Thx!

--- XInputWindow.cpp.orig 2012-02-27 18:11:50.784664537 +0800
+++ XInputWindow.cpp 2012-02-27 18:10:27.673351686 +0800
@@ -141,7 +141,7 @@
         int width = intersection->extents.x2 - intersection->extents.x1;
         int height = intersection->extents.y2 - intersection->extents.y1;

- if ((width * height) > (largestWidth * largestHeight))
+ if ((width * height) >= (largestWidth * largestHeight))
         {
           largestWidth = width;
           largestHeight = height;