Mercurial > emacs
comparison src/xterm.c @ 90988:492971a3f31f unicode-xft-base
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 816-823)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 59-69)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 237-238)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-235
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 24 Jul 2007 01:23:55 +0000 |
parents | 3371fc48749b ae42317dff79 |
children | f55f9811f5d7 |
comparison
equal
deleted
inserted
replaced
90987:b2d8a283f27e | 90988:492971a3f31f |
---|---|
9142 XFlush (FRAME_X_DISPLAY (f)); | 9142 XFlush (FRAME_X_DISPLAY (f)); |
9143 UNBLOCK_INPUT; | 9143 UNBLOCK_INPUT; |
9144 } | 9144 } |
9145 } | 9145 } |
9146 | 9146 |
9147 /* Activate frame with Extended Window Manager Hints */ | |
9148 | |
9149 void | |
9150 x_ewmh_activate_frame (f) | |
9151 FRAME_PTR f; | |
9152 { | |
9153 /* See Window Manager Specification/Extended Window Manager Hints at | |
9154 http://freedesktop.org/wiki/Standards_2fwm_2dspec */ | |
9155 | |
9156 const char *atom = "_NET_ACTIVE_WINDOW"; | |
9157 if (f->async_visible && wm_supports (f, atom)) | |
9158 { | |
9159 Lisp_Object frame; | |
9160 XSETFRAME (frame, f); | |
9161 Fx_send_client_event (frame, make_number (0), frame, | |
9162 make_unibyte_string (atom, strlen (atom)), | |
9163 make_number (32), | |
9164 Fcons (make_number (1), | |
9165 Fcons (make_number (last_user_time), | |
9166 Qnil))); | |
9167 } | |
9168 } | |
9169 | |
9147 static void | 9170 static void |
9148 XTframe_raise_lower (f, raise_flag) | 9171 XTframe_raise_lower (f, raise_flag) |
9149 FRAME_PTR f; | 9172 FRAME_PTR f; |
9150 int raise_flag; | 9173 int raise_flag; |
9151 { | 9174 { |
9152 if (raise_flag) | 9175 if (raise_flag) |
9153 { | 9176 x_raise_frame (f); |
9154 /* The following code is needed for `raise-frame' to work on | |
9155 some versions of metacity; see Window Manager | |
9156 Specification/Extended Window Manager Hints at | |
9157 http://freedesktop.org/wiki/Standards_2fwm_2dspec */ | |
9158 | |
9159 #if 0 | |
9160 /* However, on other versions (metacity 2.17.2-1.fc7), it | |
9161 reportedly causes hangs when resizing frames. */ | |
9162 | |
9163 const char *atom = "_NET_ACTIVE_WINDOW"; | |
9164 if (f->async_visible && wm_supports (f, atom)) | |
9165 { | |
9166 Lisp_Object frame; | |
9167 XSETFRAME (frame, f); | |
9168 Fx_send_client_event (frame, make_number (0), frame, | |
9169 make_unibyte_string (atom, strlen (atom)), | |
9170 make_number (32), | |
9171 Fcons (make_number (1), | |
9172 Fcons (make_number (last_user_time), | |
9173 Qnil))); | |
9174 } | |
9175 else | |
9176 #endif | |
9177 x_raise_frame (f); | |
9178 } | |
9179 else | 9177 else |
9180 x_lower_frame (f); | 9178 x_lower_frame (f); |
9181 } | 9179 } |
9182 | 9180 |
9183 /* Change of visibility. */ | 9181 /* Change of visibility. */ |