#include "frontends/font_metrics.h"
#include "frontends/Painter.h"
-#include "frontends/WorkArea.h"
#include "insets/insettext.h"
#include <algorithm>
+// FIXME: defined in X.h, spuriously pulled in by some gui headers
+#undef CursorShape
+
namespace lyx {
namespace frontend {
-using lyx::frontend::CursorShape;
+ //using lyx::frontend::CursorShape;
GScreen::GScreen(GWorkArea & o)
: owner_(o)
#include <gtkmm.h>
+// FIXME: defined in X.h, spuriously pulled in by some gui headers
+#undef CursorShape
+
namespace lyx {
namespace frontend {
#include "funcrequest.h"
#include "LColor.h"
#include "WorkArea.h"
+#include "Gui.h"
+#include "Selection.h"
using boost::shared_ptr;
#include <X11/Xft/Xft.h>
+// FIXME: defined in X.h, spuriously pulled in by some gui headers
+#undef CursorShape
+
class LColor_color;
class LyXView;
#include "GView.h"
#include "BufferView.h"
+// FIXME: defined in X.h, spuriously pulled in by some gui headers
+#undef CursorShape
+
namespace lyx {
namespace frontend {
#include "funcrequest.h"
#include "LColor.h"
#include "support/os.h"
+#include "frontends/Gui.h"
+#include "frontends/Selection.h"
#include <qapplication.h>
#include <qclipboard.h>
case SelectionRequest:
lyxerr[Debug::GUI] << "X requested selection." << endl;
if (wa_ptr) {
- lyx::docstring const sel = wa_ptr->view().requestSelection();
+ lyx::docstring const sel = wa_ptr->view().view()->requestSelection();
if (!sel.empty())
wa_ptr->view().gui().selection().put(sel);
}