]> git.lyx.org Git - lyx.git/commitdiff
Disabling Fullscreen menu feature under X11, until bug
authorPavel Sanda <sanda@lyx.org>
Tue, 5 Aug 2008 13:03:31 +0000 (13:03 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 5 Aug 2008 13:03:31 +0000 (13:03 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=4888 is fixed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26059 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 5d7a9fc7fed84aee1faa2340817dfa58f96c809d..694c8daedf17cf2e5462b051afaa0e545529c951 100644 (file)
@@ -770,6 +770,8 @@ bool GuiView::event(QEvent * e)
 
        case QEvent::ShortcutOverride: {
 
+#ifndef Q_WS_X11
+               // FIXME bug 4888
                if (isFullScreen() && menuBar()->isHidden()) {
                        QKeyEvent * ke = static_cast<QKeyEvent*>(e);
                        // FIXME: we should also try to detect special LyX shortcut such as
@@ -780,6 +782,7 @@ bool GuiView::event(QEvent * e)
                                menuBar()->show();
                        return QMainWindow::event(e);
                }
+#endif
 
                if (d.current_work_area_)
                        // Nothing special to do.
@@ -2001,6 +2004,7 @@ bool GuiView::dispatch(FuncRequest const & cmd)
                        break;
        }
 
+       // Part of automatic menu appearance feature.
        if (isFullScreen()) {
                if (menuBar()->isVisible())
                        menuBar()->hide();