]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
fixed Cyrillic encodings
[wxWidgets.git] / src / motif / window.cpp
index 28768bbaa0c586e21e7eafbda1857befde133570..456b75c71560c12cc2021d57e09277c016dae6be 100644 (file)
@@ -23,8 +23,8 @@
 
 #ifdef __VMS
 #define XtDisplay XTDISPLAY
-#define XtWINDOW XTWINDOW
-#define XtSreen XTSCREEN
+#define XtWindow XTWINDOW
+#define XtScreen XTSCREEN
 #endif
 
 #include "wx/setup.h"
@@ -2984,9 +2984,34 @@ void wxWindow::ChangeFont(bool keepOriginalSize)
 wxWindow *wxGetActiveWindow()
 {
     // TODO
+    wxFAIL_MSG("Not implemented");
     return NULL;
 }
 
+// Find the wxWindow at the current mouse position, returning the mouse
+// position.
+wxWindow* wxFindWindowAtPointer(wxPoint& pt)
+{
+    return wxFindWindowAtPoint(wxGetMousePosition());
+}
+
+// Get the current mouse position.
+wxPoint wxGetMousePosition()
+{
+    Display *display = (Display*) wxGetDisplay();
+    Window rootWindow = RootWindowOfScreen (DefaultScreenOfDisplay(display));
+    Window rootReturn, childReturn;
+    int rootX, rootY, winX, winY;
+    unsigned int maskReturn;
+
+    XQueryPointer (display,
+                  rootWindow,
+                  &rootReturn,
+                   &childReturn,
+                   &rootX, &rootY, &winX, &winY, &maskReturn);
+    return wxPoint(rootX, rootY);
+}
+
 // ----------------------------------------------------------------------------
 // wxNoOptimize: switch off size optimization
 // ----------------------------------------------------------------------------