|
@@ -103,8 +103,8 @@ int main( int argc, char** argv ) {
|
103
|
103
|
xengine->removeRect( windowselection ); // removeRect also dealloc's the rectangle for us.
|
104
|
104
|
}
|
105
|
105
|
slop::WindowRectangle t = xengine->m_hoverWindow;
|
106
|
|
- windowselection = new slop::Rectangle( t.m_x - t.m_border,
|
107
|
|
- t.m_y - t.m_border,
|
|
106
|
+ windowselection = new slop::Rectangle( t.m_x,
|
|
107
|
+ t.m_y,
|
108
|
108
|
t.m_width + t.m_border * 2,
|
109
|
109
|
t.m_height + t.m_border * 2,
|
110
|
110
|
borderSize, padding,
|
|
@@ -209,10 +209,10 @@ int main( int argc, char** argv ) {
|
209
|
209
|
// --but only if the user lets us, if the user doesn't just select a single pixel there.
|
210
|
210
|
if ( tolerance > 0 ) {
|
211
|
211
|
slop::WindowRectangle t = xengine->m_hoverWindow;
|
212
|
|
- x = t.m_x - padding - t.m_border;
|
213
|
|
- y = t.m_y - padding - t.m_border;
|
214
|
|
- w = t.m_width + t.m_border * 2 + padding*2;
|
215
|
|
- h = t.m_height + t.m_border * 2 + padding*2;
|
|
212
|
+ x = t.m_x - padding;
|
|
213
|
+ y = t.m_y - padding;
|
|
214
|
+ w = t.m_width + t.m_border * 2 + padding * 2;
|
|
215
|
+ h = t.m_height + t.m_border * 2 + padding * 2;
|
216
|
216
|
} else {
|
217
|
217
|
x = cx;
|
218
|
218
|
y = cy;
|