mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
(fit_to_screen): Don't put the menu off the left or top.
This commit is contained in:
parent
4edaa169d9
commit
525b823278
@ -750,6 +750,8 @@ fit_to_screen (mw, ws, previous_ws, horizontal_p)
|
||||
ws->x = previous_ws->x - ws->width;
|
||||
else
|
||||
ws->x = screen_width - ws->width;
|
||||
if (ws->x < 0)
|
||||
ws->x = 0;
|
||||
}
|
||||
if (ws->y < 0)
|
||||
ws->y = 0;
|
||||
@ -759,6 +761,8 @@ fit_to_screen (mw, ws, previous_ws, horizontal_p)
|
||||
ws->y = previous_ws->y - ws->height;
|
||||
else
|
||||
ws->y = screen_height - ws->height;
|
||||
if (ws->y < 0)
|
||||
ws->y = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user