1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-29 09:52:29 +01:00

KDE enhancements, menu appearance enhancement

This commit is contained in:
kojima
1999-03-18 04:26:47 +00:00
parent 42b8948743
commit 9a3d1fef45
9 changed files with 41 additions and 18 deletions

View File

@@ -961,7 +961,7 @@ updateWindowPosition(WWindow *wwin, MoveData *data, Bool doResistance,
/* horizontal movement: check horizontal edge resistances */
if (dx < 0) {
/* window is the leftmost window: check against screen edge */
edge = 0;
edge = scr->totalUsableArea.x1;
/* check position of nearest window to the left */
if (data->rightIndex > 0) {
@@ -983,7 +983,7 @@ updateWindowPosition(WWindow *wwin, MoveData *data, Bool doResistance,
}
} else if (dx > 0) {
/* window is the rightmost window: check against screen edge */
edge = scr->scr_width;
edge = scr->totalUsableArea.x2;
/* check position of nearest window to the right */
if (data->leftIndex > 0) {
@@ -1009,7 +1009,7 @@ updateWindowPosition(WWindow *wwin, MoveData *data, Bool doResistance,
/* vertical movement: check vertical edge resistances */
if (dy < 0) {
/* window is the topmost window: check against screen edge */
edge = 0;
edge = scr->totalUsableArea.y1;
/* check position of nearest window to the top */
if (data->bottomIndex > 0) {
@@ -1031,7 +1031,7 @@ updateWindowPosition(WWindow *wwin, MoveData *data, Bool doResistance,
}
} else if (dy > 0) {
/* window is the bottommost window: check against screen edge */
edge = scr->scr_height;
edge = scr->totalUsableArea.y2;
/* check position of nearest window to the bottom */
if (data->topIndex > 0) {