|
@@ -428,8 +428,8 @@ void Panel::Cursor(int visible) {
|
|
|
xx+1, y2);
|
|
|
} else {
|
|
|
if (mode == Mode_Lock)
|
|
|
- ApplyBackground(Rectangle(xx+1, yy-cheight,
|
|
|
- 1, y2-(yy-cheight)+1));
|
|
|
+ ApplyBackground(Rectangle::mk_rect(xx+1, yy-cheight,
|
|
|
+ 1, y2-(yy-cheight)+1));
|
|
|
else
|
|
|
XClearArea(Dpy, Win, xx+1, yy-cheight,
|
|
|
1, y2-(yy-cheight)+1, false);
|
|
@@ -661,9 +661,9 @@ bool Panel::OnKeyPress(XEvent& event) {
|
|
|
int maxLength = extents.width;
|
|
|
|
|
|
if (mode == Mode_Lock)
|
|
|
- ApplyBackground(Rectangle(input_pass_x - 3,
|
|
|
- input_pass_y - maxHeight - 3,
|
|
|
- maxLength + 6, maxHeight + 6));
|
|
|
+ ApplyBackground(Rectangle::mk_rect(input_pass_x - 3,
|
|
|
+ input_pass_y - maxHeight - 3,
|
|
|
+ maxLength + 6, maxHeight + 6));
|
|
|
else
|
|
|
XClearArea(Dpy, Win, xx - 3, yy-maxHeight - 3,
|
|
|
maxLength + 6, maxHeight + 6, false);
|
|
@@ -859,8 +859,8 @@ const string& Panel::GetPasswd(void) const{
|
|
|
}
|
|
|
|
|
|
Rectangle Panel::GetPrimaryViewport() {
|
|
|
- Rectangle fallback;
|
|
|
- Rectangle result;
|
|
|
+ Rectangle fallback = Rectangle::empty();
|
|
|
+ Rectangle result = Rectangle::empty();
|
|
|
|
|
|
RROutput primary;
|
|
|
XRROutputInfo *primary_info;
|