diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c index 547bdbe8333..30399c875e2 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3448,9 +3448,15 @@ x_focus_changed (int type, int state, struct x_display_info *dpyinfo, struct fra | |||
| 3448 | && CONSP (Vframe_list) | 3448 | && CONSP (Vframe_list) |
| 3449 | && !NILP (XCDR (Vframe_list))) | 3449 | && !NILP (XCDR (Vframe_list))) |
| 3450 | { | 3450 | { |
| 3451 | bufp->kind = FOCUS_IN_EVENT; | 3451 | bufp->arg = Qt; |
| 3452 | XSETFRAME (bufp->frame_or_window, frame); | ||
| 3453 | } | 3452 | } |
| 3453 | else | ||
| 3454 | { | ||
| 3455 | bufp->arg = Qnil; | ||
| 3456 | } | ||
| 3457 | |||
| 3458 | bufp->kind = FOCUS_IN_EVENT; | ||
| 3459 | XSETFRAME (bufp->frame_or_window, frame); | ||
| 3454 | } | 3460 | } |
| 3455 | 3461 | ||
| 3456 | frame->output_data.x->focus_state |= state; | 3462 | frame->output_data.x->focus_state |= state; |
| @@ -3468,6 +3474,9 @@ x_focus_changed (int type, int state, struct x_display_info *dpyinfo, struct fra | |||
| 3468 | { | 3474 | { |
| 3469 | dpyinfo->x_focus_event_frame = 0; | 3475 | dpyinfo->x_focus_event_frame = 0; |
| 3470 | x_new_focus_frame (dpyinfo, 0); | 3476 | x_new_focus_frame (dpyinfo, 0); |
| 3477 | |||
| 3478 | bufp->kind = FOCUS_OUT_EVENT; | ||
| 3479 | XSETFRAME (bufp->frame_or_window, frame); | ||
| 3471 | } | 3480 | } |
| 3472 | 3481 | ||
| 3473 | #ifdef HAVE_X_I18N | 3482 | #ifdef HAVE_X_I18N |
| @@ -8386,9 +8395,9 @@ set_wm_state (Lisp_Object frame, int add, Atom atom, Atom value) | |||
| 8386 | (make_number (add ? 1 : 0), | 8395 | (make_number (add ? 1 : 0), |
| 8387 | Fcons | 8396 | Fcons |
| 8388 | (make_fixnum_or_float (atom), | 8397 | (make_fixnum_or_float (atom), |
| 8389 | value != 0 | 8398 | (value != 0 |
| 8390 | ? Fcons (make_fixnum_or_float (value), Qnil) | 8399 | ? list1 (make_fixnum_or_float (value)) |
| 8391 | : Qnil))); | 8400 | : Qnil)))); |
| 8392 | } | 8401 | } |
| 8393 | 8402 | ||
| 8394 | void | 8403 | void |