mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
fixed issue with window being moved by 1 pixel up and left when the window
move was initiated by the client
This commit is contained in:
@@ -17,6 +17,8 @@ Changes since version 0.91.0:
|
|||||||
- added code to automatically update the icon paths from the old .AppInfo
|
- added code to automatically update the icon paths from the old .AppInfo
|
||||||
style to the new Library/WindowMaker style in WMWindowAttributes when
|
style to the new Library/WindowMaker style in WMWindowAttributes when
|
||||||
Window Maker starts to make transition transparent for users.
|
Window Maker starts to make transition transparent for users.
|
||||||
|
- fixed issue with window being moved by 1 pixel up and left when the window
|
||||||
|
move was initiated by the client
|
||||||
|
|
||||||
|
|
||||||
Changes since version 0.90.0:
|
Changes since version 0.90.0:
|
||||||
|
|||||||
16
src/client.c
16
src/client.c
@@ -239,19 +239,23 @@ wClientConfigure(WWindow *wwin, XConfigureRequestEvent *xcre)
|
|||||||
/* If the window is shaded, wrong height will be set for the window */
|
/* If the window is shaded, wrong height will be set for the window */
|
||||||
if (xcre->value_mask & CWX) {
|
if (xcre->value_mask & CWX) {
|
||||||
nx = xcre->x;
|
nx = xcre->x;
|
||||||
if (HAS_BORDER(wwin))
|
/* Subtracting the border makes the window shift by 1 pixel -Dan */
|
||||||
|
/*if (HAS_BORDER(wwin)) {
|
||||||
nx -= FRAME_BORDER_WIDTH;
|
nx -= FRAME_BORDER_WIDTH;
|
||||||
}
|
}*/
|
||||||
else
|
} else {
|
||||||
nx = wwin->frame_x;
|
nx = wwin->frame_x;
|
||||||
|
}
|
||||||
|
|
||||||
if (xcre->value_mask & CWY) {
|
if (xcre->value_mask & CWY) {
|
||||||
ny = xcre->y - ((ofs_y < 0) ? 0 : wwin->frame->top_width);
|
ny = xcre->y - ((ofs_y < 0) ? 0 : wwin->frame->top_width);
|
||||||
if (HAS_BORDER(wwin))
|
/* Subtracting the border makes the window shift by 1 pixel -Dan */
|
||||||
|
/*if (HAS_BORDER(wwin)) {
|
||||||
ny -= FRAME_BORDER_WIDTH;
|
ny -= FRAME_BORDER_WIDTH;
|
||||||
}
|
}*/
|
||||||
else
|
} else {
|
||||||
ny = wwin->frame_y;
|
ny = wwin->frame_y;
|
||||||
|
}
|
||||||
|
|
||||||
if (xcre->value_mask & CWWidth)
|
if (xcre->value_mask & CWWidth)
|
||||||
nwidth = xcre->width;
|
nwidth = xcre->width;
|
||||||
|
|||||||
@@ -1124,7 +1124,8 @@ handleLogoPush(XEvent *event, void *data)
|
|||||||
"WHAT YOU SAY??",
|
"WHAT YOU SAY??",
|
||||||
"SOMEBODY SET UP US THE BOMB",
|
"SOMEBODY SET UP US THE BOMB",
|
||||||
"ALL YOUR BASE ARE BELONG TO US!",
|
"ALL YOUR BASE ARE BELONG TO US!",
|
||||||
"Oh My God!!! Larry is back!"
|
"Oh My God!!! Larry is back!",
|
||||||
|
"Alex Perez is aliveeeeeeee!!!"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user