mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
fix compilation on fedora13 and binutils/gold by removing some really X11-specific code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34592 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e4d65bdf89
commit
6034c0e46f
@ -72,11 +72,6 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#ifdef Q_WS_X11
|
||||
#include <QX11Info>
|
||||
extern "C" int XEventsQueued(Display *display, int mode);
|
||||
#endif
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
int const CursorWidth = 2;
|
||||
#else
|
||||
@ -845,11 +840,10 @@ void GuiWorkArea::keyPressEvent(QKeyEvent * ev)
|
||||
|
||||
// do nothing if there are other events
|
||||
// (the auto repeated events come too fast)
|
||||
// \todo FIXME: remove hard coded Qt keys, process the key binding
|
||||
// it looks like this is only needed on X11
|
||||
#ifdef Q_WS_X11
|
||||
if (XEventsQueued(QX11Info::display(), 0) > 1 && ev->isAutoRepeat()
|
||||
&& (Qt::Key_PageDown || Qt::Key_PageUp)) {
|
||||
LYXERR(Debug::KEY, "system is busy: scroll key event ignored");
|
||||
if (qApp->hasPendingEvents() && ev->isAutoRepeat()) {
|
||||
LYXERR(Debug::KEY, "system is busy: keyPress event ignored");
|
||||
ev->ignore();
|
||||
return;
|
||||
}
|
||||
|
@ -130,6 +130,8 @@ What's new
|
||||
|
||||
* BUILD/INSTALLATION
|
||||
|
||||
- Fix building with Fedora 13 and potentially other new linux distribution.
|
||||
|
||||
- CMake: Installs all but the binaries into the 'Resource' folder
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user