aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.h
diff options
context:
space:
mode:
authorDmitry Antipov2012-11-23 19:39:48 +0400
committerDmitry Antipov2012-11-23 19:39:48 +0400
commitf418b22ee985bb6887c45856a1cabe2f5c726fca (patch)
tree51417635f4321a34ffb460c8266866ec87f5a94c /src/w32term.h
parente7d0e5ee247a155a268ffbf80bedbe25e15b5032 (diff)
downloademacs-f418b22ee985bb6887c45856a1cabe2f5c726fca.tar.gz
emacs-f418b22ee985bb6887c45856a1cabe2f5c726fca.zip
* frame.h (struct frame): Remove display_preempted member
since all users are dead long ago. * nsterm.h (struct x_output): Use the only dummy member. * w32menu.c (pending_menu_activation): Remove since not really used. (set_frame_menubar): Adjust user. * w32term.h (struct x_output): Drop outdated #if 0 code. (struct w32_output): Use bitfields for explicit_parent, asked_for_visible and menubar_active members. Drop unused pending_menu_activation member. * xterm.h (struct x_output): Drop outdated #if 0 code. Use bitfields for explicit_parent, asked_for_visible, has_been_visible and net_wm_state_hidden_seen members.
Diffstat (limited to 'src/w32term.h')
-rw-r--r--src/w32term.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/w32term.h b/src/w32term.h
index ce709c1231d..28d4ca6c490 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -251,16 +251,10 @@ extern Lisp_Object x_get_focus_frame (struct frame *);
251 diffs between X and w32 code. */ 251 diffs between X and w32 code. */
252struct x_output 252struct x_output
253{ 253{
254#if 0 /* These are also defined in struct frame. Use that instead. */
255 PIX_TYPE background_pixel;
256 PIX_TYPE foreground_pixel;
257#endif
258
259 /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this 254 /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this
260 frame, or IMPLICIT if we received an EnterNotify. 255 frame, or IMPLICIT if we received an EnterNotify.
261 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ 256 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
262 int focus_state; 257 int focus_state;
263
264}; 258};
265 259
266enum 260enum
@@ -347,17 +341,13 @@ struct w32_output
347 341
348 /* Nonzero means our parent is another application's window 342 /* Nonzero means our parent is another application's window
349 and was explicitly specified. */ 343 and was explicitly specified. */
350 char explicit_parent; 344 unsigned explicit_parent : 1;
351 345
352 /* Nonzero means tried already to make this frame visible. */ 346 /* Nonzero means tried already to make this frame visible. */
353 char asked_for_visible; 347 unsigned asked_for_visible : 1;
354 348
355 /* Nonzero means menubar is currently active. */ 349 /* Nonzero means menubar is currently active. */
356 char menubar_active; 350 unsigned menubar_active : 1;
357
358 /* Nonzero means menubar is about to become active, but should be
359 brought up to date first. */
360 volatile char pending_menu_activation;
361 351
362 /* Relief GCs, colors etc. */ 352 /* Relief GCs, colors etc. */
363 struct relief 353 struct relief