/* * It is important that we first request the selection * notification, and then setup the initial state of * is_composited to avoid a race condition here. */ void _gdk_x11_screen_setup (GdkScreen *screen) { GdkX11Screen *x11_screen = GDK_X11_SCREEN (screen); gdk_display_request_selection_notification (x11_screen->display, gdk_x11_xatom_to_atom_for_display (x11_screen->display, get_cm_atom (x11_screen))); x11_screen->is_composited = check_is_composited (x11_screen->display, x11_screen); }
/* * It is important that we first request the selection * notification, and then setup the initial state of * is_composited to avoid a race condition here. */ void _gdk_x11_screen_setup (GdkScreen *screen) { GdkX11Screen *x11_screen = GDK_X11_SCREEN (screen); x11_screen->cm_selection_atom = make_cm_atom (x11_screen->screen_num); gdk_display_request_selection_notification (x11_screen->display, x11_screen->cm_selection_atom); x11_screen->is_composited = check_is_composited (x11_screen->display, x11_screen); }