mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* 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>
|
||||
|
||||
* gtk/gtkwidget.c (gtk_widget_new): Add missing cast.
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <netinet/in.h>
|
||||
#include <unistd.h>
|
||||
#include "gdk.h"
|
||||
#include "config.h"
|
||||
|
||||
@ -326,6 +327,7 @@ gdk_window_new (GdkWindow *parent,
|
||||
unsigned int class;
|
||||
char *title;
|
||||
int i;
|
||||
int pid;
|
||||
|
||||
g_return_val_if_fail (attributes != NULL, NULL);
|
||||
|
||||
@ -578,6 +580,16 @@ gdk_window_new (GdkWindow *parent,
|
||||
|
||||
if (!wm_client_leader_atom)
|
||||
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,
|
||||
wm_client_leader_atom,
|
||||
|
Loading…
Reference in New Issue
Block a user