diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-11-28 14:52:37 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-11-28 14:52:37 +0100 |
commit | c4cc2eb15f9da7a02ff584d5f517239b53a2c985 (patch) | |
tree | 20a3ba41bb9c6b4d591e414bb9f655364c5faa78 | |
parent | 40856004e394305c880124f3d3b5f08fc1e9a16d (diff) | |
download | libwnck-c4cc2eb15f9da7a02ff584d5f517239b53a2c985.tar.gz |
utils: add a warning if no X11 is found
-rw-r--r-- | libwnck/util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libwnck/util.c b/libwnck/util.c index bc235bb..c9a75ba 100644 --- a/libwnck/util.c +++ b/libwnck/util.c @@ -812,7 +812,11 @@ _wnck_get_default_display (void) /* FIXME: when we fix libwnck to not use the GDK default display, we will * need to fix wnckprop accordingly. */ if (!GDK_IS_X11_DISPLAY (display)) - return NULL; + { + g_warning ("libwnck is designed to work in X11 only, no valid display found"); + return NULL; + } + return GDK_DISPLAY_XDISPLAY (display); } |