Mercurial > emacs
comparison src/xterm.c @ 73630:52c60387f8d4
* xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
window.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Fri, 03 Nov 2006 08:58:39 +0000 |
parents | 0266829c1021 |
children | fe2f6663aa15 02cf29720f31 |
comparison
equal
deleted
inserted
replaced
73629:df25a33a90b0 | 73630:52c60387f8d4 |
---|---|
8605 | 8605 |
8606 void | 8606 void |
8607 x_raise_frame (f) | 8607 x_raise_frame (f) |
8608 struct frame *f; | 8608 struct frame *f; |
8609 { | 8609 { |
8610 Lisp_Object frame; | |
8611 const char *atom = "_NET_ACTIVE_WINDOW"; | |
8612 | |
8613 BLOCK_INPUT; | |
8610 if (f->async_visible) | 8614 if (f->async_visible) |
8611 { | 8615 XRaiseWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f)); |
8612 BLOCK_INPUT; | 8616 |
8613 XRaiseWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f)); | 8617 XSETFRAME (frame, f); |
8614 XFlush (FRAME_X_DISPLAY (f)); | 8618 /* See Window Manager Specification/Extended Window Manager Hints at |
8615 UNBLOCK_INPUT; | 8619 http://freedesktop.org/wiki/Standards_2fwm_2dspec */ |
8616 } | 8620 |
8621 Fx_send_client_event (frame, make_number (0), frame, | |
8622 make_unibyte_string (atom, strlen (atom)), | |
8623 make_number (32), | |
8624 Fcons (make_number (1), | |
8625 Fcons (make_number (time (NULL) * 1000), | |
8626 Qnil))); | |
8627 XFlush (FRAME_X_DISPLAY (f)); | |
8628 UNBLOCK_INPUT; | |
8617 } | 8629 } |
8618 | 8630 |
8619 /* Lower frame F. */ | 8631 /* Lower frame F. */ |
8620 | 8632 |
8621 void | 8633 void |