Lines Matching refs:pDisplay
54 static bool is_gnome_desktop( Display* pDisplay ) in is_gnome_desktop() argument
66 Atom nAtom1 = XInternAtom( pDisplay, "GNOME_SM_PROXY", True ); in is_gnome_desktop()
67 Atom nAtom2 = XInternAtom( pDisplay, "NAUTILUS_DESKTOP_WINDOW_ID", True ); in is_gnome_desktop()
71 … Atom* pProperties = XListProperties( pDisplay, DefaultRootWindow( pDisplay ), &nProperties ); in is_gnome_desktop()
87 Atom nUTFAtom = XInternAtom( pDisplay, "UTF8_STRING", True ); in is_gnome_desktop()
88 Atom nNetWMNameAtom = XInternAtom( pDisplay, "_NET_WM_NAME", True ); in is_gnome_desktop()
94 XQueryTree( pDisplay, DefaultRootWindow( pDisplay ), in is_gnome_desktop()
104 XGetWindowProperty( pDisplay, in is_gnome_desktop()
152 static int KDEVersion( Display* pDisplay ) in KDEVersion() argument
156 Atom nFullSession = XInternAtom( pDisplay, "KDE_FULL_SESSION", True ); in KDEVersion()
157 Atom nKDEVersion = XInternAtom( pDisplay, "KDE_SESSION_VERSION", True ); in KDEVersion()
169 XGetWindowProperty( pDisplay, in KDEVersion()
170 DefaultRootWindow( pDisplay ), in KDEVersion()
193 static bool is_kde_desktop( Display* pDisplay ) in is_kde_desktop() argument
210 if ( KDEVersion( pDisplay ) == 3 ) in is_kde_desktop()
216 static bool is_kde4_desktop( Display* pDisplay ) in is_kde4_desktop() argument
227 if ( KDEVersion( pDisplay ) == 4 ) in is_kde4_desktop()
233 static bool is_cde_desktop( Display* pDisplay ) in is_cde_desktop() argument
237 Atom nDtAtom = XInternAtom( pDisplay, "_DT_WM_READY", True ); in is_cde_desktop()
311 Display* pDisplay = XOpenDisplay( pDisplayStr ); in get_desktop_environment() local
312 if( pDisplay ) in get_desktop_environment()
316 if ( is_kde4_desktop( pDisplay ) ) in get_desktop_environment()
318 else if ( is_gnome_desktop( pDisplay ) ) in get_desktop_environment()
320 else if ( is_cde_desktop( pDisplay ) ) in get_desktop_environment()
322 else if ( is_kde_desktop( pDisplay ) ) in get_desktop_environment()
330 XCloseDisplay( pDisplay ); in get_desktop_environment()