@ -1728,7 +1728,7 @@ _gdk_x11_display_open (const gchar *display_name)
|
|||||||
if (!gdk_running_in_sandbox ())
|
if (!gdk_running_in_sandbox ())
|
||||||
{
|
{
|
||||||
/* if sandboxed, we're likely in a pid namespace and would only confuse the wm with this */
|
/* if sandboxed, we're likely in a pid namespace and would only confuse the wm with this */
|
||||||
pid_t pid = getpid ();
|
long pid = getpid ();
|
||||||
XChangeProperty (display_x11->xdisplay,
|
XChangeProperty (display_x11->xdisplay,
|
||||||
display_x11->leader_window,
|
display_x11->leader_window,
|
||||||
gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_PID"),
|
gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_PID"),
|
||||||
|
|||||||
@ -935,7 +935,7 @@ setup_toplevel_window (GdkWindow *window,
|
|||||||
if (!gdk_running_in_sandbox ())
|
if (!gdk_running_in_sandbox ())
|
||||||
{
|
{
|
||||||
/* if sandboxed, we're likely in a pid namespace and would only confuse the wm with this */
|
/* if sandboxed, we're likely in a pid namespace and would only confuse the wm with this */
|
||||||
pid_t pid = getpid ();
|
long pid = getpid ();
|
||||||
XChangeProperty (xdisplay, xid,
|
XChangeProperty (xdisplay, xid,
|
||||||
gdk_x11_get_xatom_by_name_for_display (x11_screen->display, "_NET_WM_PID"),
|
gdk_x11_get_xatom_by_name_for_display (x11_screen->display, "_NET_WM_PID"),
|
||||||
XA_CARDINAL, 32,
|
XA_CARDINAL, 32,
|
||||||
|
|||||||
Reference in New Issue
Block a user