Function: set-frame-position
set-frame-position is a function defined in frame.c.
Signature
(set-frame-position FRAME X Y)
Documentation
Set position of FRAME to (X, Y).
FRAME must be a live frame and defaults to the selected one. X and Y, if positive, specify the coordinate of the left and top edge of FRAME's outer frame in pixels relative to an origin (0, 0) of FRAME's display. If any of X or Y is negative, it specifies the coordinates of the right or bottom edge of the outer frame of FRAME relative to the right or bottom edge of FRAME's display.
Source Code
// Defined in /usr/src/emacs/src/frame.c
{
struct frame *f = decode_live_frame (frame);
int xval = check_integer_range (x, INT_MIN, INT_MAX);
int yval = check_integer_range (y, INT_MIN, INT_MAX);
if (FRAME_WINDOW_P (f))
{
#ifdef HAVE_WINDOW_SYSTEM
if (FRAME_TERMINAL (f)->set_frame_offset_hook)
FRAME_TERMINAL (f)->set_frame_offset_hook (f, xval, yval, 1);
#else
(void) xval;
(void) yval;
#endif
}
return Qt;
}