2633
2637
screen_x11 = GDK_SCREEN_X11 (screen);
2634
2638
display = screen_x11->display;
2636
2640
g_return_if_fail (GDK_DISPLAY_X11 (display)->trusted_client);
2638
2642
g_get_current_time (&tv);
2640
2644
if (ABS (tv.tv_sec - screen_x11->last_wmspec_check_time) < 15)
2641
2645
return; /* we've checked recently */
2643
2647
screen_x11->last_wmspec_check_time = tv.tv_sec;
2647
2651
gdk_x11_get_xatom_by_name_for_display (display, "_NET_SUPPORTING_WM_CHECK"),
2648
0, G_MAXLONG, False, XA_WINDOW, &type, &format,
2652
0, G_MAXLONG, False, XA_WINDOW, &type, &format,
2649
2653
&n_items, &bytes_after, &data);