summary refs log tree commit diff stats
path: root/src/fe-gtk/meson.build
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-08-31 09:52:45 -0400
committerPatrick Griffis <tingping@tingping.se>2017-08-31 10:16:03 -0400
commitd99cd18fb9e97c4ec264ad7a72bf7e2ba9a6dfa2 (patch)
treed2cb813ed55b738e354c1554052ac6556b4de2b2 /src/fe-gtk/meson.build
parent281038e725e05e8373e11f8edcbcbfc746e1427d (diff)
Improve detection of system tray support
Closes #2045
Diffstat (limited to 'src/fe-gtk/meson.build')
-rw-r--r--src/fe-gtk/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-gtk/meson.build b/src/fe-gtk/meson.build
index 731709b1..ba5b2779 100644
--- a/src/fe-gtk/meson.build
+++ b/src/fe-gtk/meson.build
@@ -28,12 +28,17 @@ hexchat_gtk_sources = [
   'xtext.c'
 ]
 
+gtk_dep = dependency('gtk+-2.0', version: '>= 2.24.0')
 hexchat_gtk_deps = [
   hexchat_common_dep,
   libgmodule_dep, # used by libsexy
-  dependency('gtk+-2.0', version: '>= 2.24.0')
+  gtk_dep
 ]
 
+if gtk_dep.get_pkgconfig_variable('target') == 'x11'
+  hexchat_gtk_deps += dependency('x11')
+endif
+
 hexchat_gtk_cflags = [
   '-fPIE'
 ]