diff --git a/toplevel.cpp b/toplevel.cpp index 0bb1caca60..1174fa2ac1 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -173,14 +173,6 @@ NET::WindowType Toplevel::windowType(bool direct, int supported_types) const info->setWindowType(wt); // force hint change } // hacks here - if (wt == NET::Menu && cl != NULL) { - // ugly hack to support the times when NET::Menu meant NET::TopMenu - // if it's as wide as the screen, not very high and has its upper-left - // corner a bit above the screen's upper-left cornet, it's a topmenu - if (x() == 0 && y() < 0 && y() > -10 && height() < 100 - && abs(width() - workspace()->clientArea(FullArea, cl).width()) < 10) - wt = NET::TopMenu; - } // TODO change this to rule const char* const oo_prefix = "openoffice.org"; // QByteArray has no startsWith() // oo_prefix is lowercase, because resourceClass() is forced to be lowercase