#define wxWindowNative wxWindowGTK
#elif defined(__WXMGL__)
#define wxWindowNative wxWindowMGL
+#elif defined(__WXX11__)
+#define wxWindowNative wxWindowX11
#elif defined(__WXMAC__)
#define wxWindowNative wxWindowMac
#endif
#include "wx/defs.h"
#include "wx/utils.h"
#include "X11/Xlib.h"
+#include "X11/Xatom.h"
+#include "X11/Xutil.h"
class wxMouseEvent;
class wxKeyEvent;
// All dialogs should really have this style
m_windowStyle = style;
m_windowStyle |= wxTAB_TRAVERSAL;
+
+ wxPoint pos( 20,20 );
+ wxSize size( 20,20 );
m_parent = parent;
if (m_parent) m_parent->AddChild( this );
#endif //WX_PRECOMP
#include "wx/x11/private.h"
-#include "X11/Xatom.h"
-#include "X11/Xutil.h"
-// list of all frames and modeless dialogs
-// wxWindowList wxModelessWindows;
+
+bool wxMWMIsRunning(Window w);
// ----------------------------------------------------------------------------
// wxTopLevelWindowX11 creation
wmHints->icon_mask = (Pixmap) icon.GetMask()->GetPixmap();
}
- XSetWMHints(wxGlobalDisplay(), (Window) GetMainWindow(),
- wmHints);
+ XSetWMHints(wxGlobalDisplay(), (Window) GetMainWindow(), wmHints);
XFree(wmHints);
}
}
}
res = XGrabKeyboard(wxGlobalDisplay(), (Window) GetMainWindow(),
+#if 0
+ ShiftMask | LockMask | ControlMask | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask,
+#else
FALSE,
+#endif
GrabModeAsync,
GrabModeAsync,
CurrentTime);
if (!GetMainWindow())
return FALSE;
+ wxColour colour( col );
XSetWindowAttributes attrib;
- attrib.background_pixel = ((wxColour&)col).AllocColour(wxGlobalDisplay());
+ attrib.background_pixel = colour.AllocColour(wxGlobalDisplay());
XChangeWindowAttributes(wxGlobalDisplay(),
(Window) GetMainWindow(),