diff --git a/windec/kdecoration2/config/breezeexceptiondialog.cpp b/windec/kdecoration2/config/breezeexceptiondialog.cpp index 2358f429..56f148c9 100644 --- a/windec/kdecoration2/config/breezeexceptiondialog.cpp +++ b/windec/kdecoration2/config/breezeexceptiondialog.cpp @@ -26,6 +26,11 @@ #include "breezeexceptiondialog.h" #include "breezeexceptiondialog.moc" #include "breezedetectwidget.h" +#include "config-breeze.h" + +#if BREEZE_HAVE_X11 +#include +#endif namespace Breeze { @@ -53,6 +58,13 @@ namespace Breeze { connect( iter.value(), SIGNAL(clicked()), SLOT(updateChanged()) ); } connect( hideTitleBar, SIGNAL(clicked()), SLOT(updateChanged()) ); + + // hide detection dialog on non X11 platforms + #if BREEZE_HAVE_X11 + if( !QX11Info::isPlatformX11() ) detectDialogButton->hide(); + #else + detectDialogButton->hide(); + #endif } //___________________________________________