aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
authorMartin Rudalics2025-12-22 11:01:53 +0100
committerMartin Rudalics2025-12-22 11:01:53 +0100
commitf3d9371a890699fe4047f693adfcd4d8dbe2fb7d (patch)
treed37fd603addf836483df8ebcf78c53cd0407d991 /src/xterm.h
parent5cf8af22900d359c18a75d9efed44f7c1d8fc06c (diff)
downloademacs-f3d9371a890699fe4047f693adfcd4d8dbe2fb7d.tar.gz
emacs-f3d9371a890699fe4047f693adfcd4d8dbe2fb7d.zip
Add functions to set frame size and position in one compound step
* lisp/frame.el (set-frame-size-and-position): New function. * src/frame.c (adjust_frame_size): Handle requests to set size and position. (Fset_frame_size_and_position_pixelwise): New function. * src/gtkutil.c (xg_frame_set_size_and_position): New function. (xg_wm_set_size_hint): Handle any non-NorthWestGravity values for child frames only. Some GTK implementations don't like them. * src/gtkutil.h (xg_frame_set_size_and_position.): Add external declaration. * src/termhooks.h (set_window_size_and_position_hook): New hook. * src/w32term.c (w32_set_window_size_and_position): New function. (w32_create_terminal): Make it the Microsoft Windows API set_window_size_and_position_hook. * src/xterm.c (x_set_window_size_and_position_1) (x_set_window_size_and_position): New functions. (x_create_terminal): Make x_set_window_size_and_position the set_window_size_and_position_hook for the X protocol. * src/xterm.h (x_set_window_size_and_position): Add external declaration. * etc/NEWS: Announce new functions.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 661f6ae78b7..199fcd2edf0 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -1766,6 +1766,7 @@ extern void x_ignore_errors_for_next_request (struct x_display_info *,
1766extern void x_stop_ignoring_errors (struct x_display_info *); 1766extern void x_stop_ignoring_errors (struct x_display_info *);
1767extern void x_clear_errors (Display *); 1767extern void x_clear_errors (Display *);
1768extern void x_set_window_size (struct frame *, bool, int, int); 1768extern void x_set_window_size (struct frame *, bool, int, int);
1769extern void x_set_window_size_and_position (struct frame *, int, int);
1769extern void x_set_last_user_time_from_lisp (struct x_display_info *, Time); 1770extern void x_set_last_user_time_from_lisp (struct x_display_info *, Time);
1770extern void x_make_frame_visible (struct frame *); 1771extern void x_make_frame_visible (struct frame *);
1771extern void x_make_frame_invisible (struct frame *); 1772extern void x_make_frame_invisible (struct frame *);