diff --git a/tdecore/tdeapplication.cpp b/tdecore/tdeapplication.cpp index fb11f90d4..f95e88a4c 100644 --- a/tdecore/tdeapplication.cpp +++ b/tdecore/tdeapplication.cpp @@ -1902,14 +1902,6 @@ TDEApplication::~TDEApplication() } -#ifdef TQ_WS_X11 -class KAppX11HackWidget: public TQWidget -{ -public: - bool publicx11Event( XEvent * e) { return x11Event( e ); } -}; -#endif - #if defined(TQ_WS_X11) && defined(COMPOSITE) bool TDEApplication::isCompositionManagerAvailable() { bool have_manager = false; @@ -2184,7 +2176,7 @@ bool TDEApplication::x11EventFilter( XEvent *_event ) if (x11Filter) { for (TQWidget *w=x11Filter->first(); w; w=x11Filter->next()) { - if (((KAppX11HackWidget*) w)->publicx11Event(_event)) + if (w->x11Event(_event)) return true; } }