Use XFixesChangeSaveSet if available. (#314682)

2005-08-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
	Use XFixesChangeSaveSet if available.  (#314682)
This commit is contained in:
Matthias Clasen 2005-08-29 17:18:12 +00:00 committed by Matthias Clasen
parent 9eb5ea7dd3
commit d895eef63a
3 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2005-08-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
Use XFixesChangeSaveSet if available. (#314682)
* gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
was active. (#314298, Christian Persch, analysis by Mark McLoughlin)

View File

@ -1,5 +1,8 @@
2005-08-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksocket-x11.c (_gtk_socket_windowing_embed_notify):
Use XFixesChangeSaveSet if available. (#314682)
* gtk/gtkmenu.c (gtk_menu_grab_notify): Only cancel if the menu
was active. (#314298, Christian Persch, analysis by Mark McLoughlin)

View File

@ -41,6 +41,10 @@
#include "x11/gdkx.h"
#ifdef HAVE_XFIXES
#include <X11/extensions/Xfixes.h>
#endif
#include "gtkxembed.h"
#include "gtkalias.h"
@ -263,6 +267,13 @@ _gtk_socket_windowing_embed_get_info (GtkSocket *socket)
void
_gtk_socket_windowing_embed_notify (GtkSocket *socket)
{
#ifdef HAVE_XFIXES
GdkDisplay *display = gtk_widget_get_display (GTK_WIDGET (socket);
XFixesChangeSaveSet (GDK_DISPLAY_XDISPLAY (display)),
GDK_WINDOW_XWINDOW (socket->plug_window),
SetModeInsert, SaveSetRoot, SaveSetUnmap);
#endif
_gtk_xembed_send_message (socket->plug_window,
XEMBED_EMBEDDED_NOTIFY, 0,
GDK_WINDOW_XWINDOW (GTK_WIDGET (socket)->window),