forked from AuroraMiddleware/gtk
Set _NET_WM_PID and WM_CLIENT_MACHINE properties on each window, not just
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set _NET_WM_PID and WM_CLIENT_MACHINE properties on each window, not just on the client leader. (#58463)
This commit is contained in:
parent
1513d3aa41
commit
d9b794af77
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
|
||||||
|
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
|
||||||
|
window, not just on the client leader. (#58463)
|
||||||
|
|
||||||
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
|
||||||
|
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
|
||||||
|
window, not just on the client leader. (#58463)
|
||||||
|
|
||||||
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
|
||||||
|
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
|
||||||
|
window, not just on the client leader. (#58463)
|
||||||
|
|
||||||
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
|
||||||
|
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
|
||||||
|
window, not just on the client leader. (#58463)
|
||||||
|
|
||||||
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
|
||||||
|
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
|
||||||
|
window, not just on the client leader. (#58463)
|
||||||
|
|
||||||
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
|
||||||
|
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
|
||||||
|
window, not just on the client leader. (#58463)
|
||||||
|
|
||||||
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Wed Sep 19 17:59:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-x11.c (gdk_window_new): Set
|
||||||
|
_NET_WM_PID and WM_CLIENT_MACHINE properties on each
|
||||||
|
window, not just on the client leader. (#58463)
|
||||||
|
|
||||||
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
Wed Sep 19 17:28:47 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include "gdk.h"
|
#include "gdk.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
@ -326,6 +327,7 @@ gdk_window_new (GdkWindow *parent,
|
|||||||
unsigned int class;
|
unsigned int class;
|
||||||
char *title;
|
char *title;
|
||||||
int i;
|
int i;
|
||||||
|
int pid;
|
||||||
|
|
||||||
g_return_val_if_fail (attributes != NULL, NULL);
|
g_return_val_if_fail (attributes != NULL, NULL);
|
||||||
|
|
||||||
@ -579,6 +581,16 @@ gdk_window_new (GdkWindow *parent,
|
|||||||
if (!wm_client_leader_atom)
|
if (!wm_client_leader_atom)
|
||||||
wm_client_leader_atom = gdk_atom_intern ("WM_CLIENT_LEADER", FALSE);
|
wm_client_leader_atom = gdk_atom_intern ("WM_CLIENT_LEADER", FALSE);
|
||||||
|
|
||||||
|
/* This will set WM_CLIENT_MACHINE and WM_LOCALE_NAME */
|
||||||
|
XSetWMProperties (xdisplay, xid, NULL, NULL, NULL, 0, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
pid = getpid ();
|
||||||
|
XChangeProperty (xdisplay, xid,
|
||||||
|
gdk_atom_intern ("_NET_WM_PID", FALSE),
|
||||||
|
XA_CARDINAL, 32,
|
||||||
|
PropModeReplace,
|
||||||
|
(guchar *)&pid, 1);
|
||||||
|
|
||||||
XChangeProperty (xdisplay, xid,
|
XChangeProperty (xdisplay, xid,
|
||||||
wm_client_leader_atom,
|
wm_client_leader_atom,
|
||||||
XA_WINDOW, 32, PropModeReplace,
|
XA_WINDOW, 32, PropModeReplace,
|
||||||
|
Loading…
Reference in New Issue
Block a user