aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPaul Eggert2012-01-09 09:36:10 -0800
committerPaul Eggert2012-01-09 09:36:10 -0800
commit35cf62d95cdcd5323dcea4a5385942c342ff1d9c (patch)
tree90358cbb033a126c4d48793a80fd804b7baaca24 /src/xterm.c
parent59815c02506eb39b61e672528ed03885749ba529 (diff)
parent7655cb66d86564e792b825f1a0e1a4de7d6e6db5 (diff)
downloademacs-35cf62d95cdcd5323dcea4a5385942c342ff1d9c.tar.gz
emacs-35cf62d95cdcd5323dcea4a5385942c342ff1d9c.zip
Merge from trunk.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 4bc12c06b34..2a2ae105e2e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1,6 +1,6 @@
1/* X Communication module for terminals which understand the X protocol. 1/* X Communication module for terminals which understand the X protocol.
2 2
3Copyright (C) 1989, 1993-2011 Free Software Foundation, Inc. 3Copyright (C) 1989, 1993-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -5150,7 +5150,7 @@ x_scroll_bar_remove (struct scroll_bar *bar)
5150 XDestroyWindow (FRAME_X_DISPLAY (f), bar->x_window); 5150 XDestroyWindow (FRAME_X_DISPLAY (f), bar->x_window);
5151#endif 5151#endif
5152 5152
5153 /* Disassociate this scroll bar from its window. */ 5153 /* Dissociate this scroll bar from its window. */
5154 XWINDOW (bar->window)->vertical_scroll_bar = Qnil; 5154 XWINDOW (bar->window)->vertical_scroll_bar = Qnil;
5155 5155
5156 UNBLOCK_INPUT; 5156 UNBLOCK_INPUT;
@@ -8981,6 +8981,18 @@ x_lower_frame (struct frame *f)
8981 } 8981 }
8982} 8982}
8983 8983
8984/* Request focus with XEmbed */
8985
8986void
8987xembed_request_focus (FRAME_PTR f)
8988{
8989 /* See XEmbed Protocol Specification at
8990 http://freedesktop.org/wiki/Specifications/xembed-spec */
8991 if (f->async_visible)
8992 xembed_send_message (f, CurrentTime,
8993 XEMBED_REQUEST_FOCUS, 0, 0, 0);
8994}
8995
8984/* Activate frame with Extended Window Manager Hints */ 8996/* Activate frame with Extended Window Manager Hints */
8985 8997
8986void 8998void