]> git.eshelyaron.com Git - emacs.git/commit
xterm.c: Move GTK3-specific variables into narrower scopes
authorStefan Kangas <stefankangas@gmail.com>
Sat, 19 Apr 2025 06:48:17 +0000 (08:48 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 21 Apr 2025 20:38:41 +0000 (22:38 +0200)
commit2164d99d5e4bef1da0b0fa2b40f75dd6770006c7
tree459540d939706c9b6781b11b7fae35ab94004555
parent12376f585a2c4f95adfbc7c7d3a882a35bcd986c
xterm.c: Move GTK3-specific variables into narrower scopes

Avoid declaring GTK3-specific variables in larger-than-necessary scopes,
especially under #ifdefs.  Instead, declare them where used.  This improves
readability and reduces #ifdef clutter without changing behavior.

* src/xterm.c: [HAVE_GTK3] (x_update_opaque_region):
(XTframe_up_to_date, x_new_focus_frame, handle_one_xevent)
(x_ignore_errors_for_next_request, x_stop_ignoring_errors): Clean up
variable declarations.

(cherry picked from commit 177accc53d7ed2afc5768ae117fc6a19749e8fb6)
src/xterm.c