diff options
Diffstat (limited to 'chrome/common/x11_util.cc')
-rw-r--r-- | chrome/common/x11_util.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/x11_util.cc b/chrome/common/x11_util.cc index 3af0115..1305fe1 100644 --- a/chrome/common/x11_util.cc +++ b/chrome/common/x11_util.cc @@ -26,6 +26,10 @@ namespace x11_util { +bool XDisplayExists() { + return (gdk_display_get_default() != NULL); +} + Display* GetXDisplay() { static Display* display = NULL; |