Various compile fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,6 +61,8 @@ enum
|
|||||||
#define wxWindowNative wxWindowGTK
|
#define wxWindowNative wxWindowGTK
|
||||||
#elif defined(__WXMGL__)
|
#elif defined(__WXMGL__)
|
||||||
#define wxWindowNative wxWindowMGL
|
#define wxWindowNative wxWindowMGL
|
||||||
|
#elif defined(__WXX11__)
|
||||||
|
#define wxWindowNative wxWindowX11
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
#define wxWindowNative wxWindowMac
|
#define wxWindowNative wxWindowMac
|
||||||
#endif
|
#endif
|
||||||
|
@@ -15,6 +15,8 @@
|
|||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
#include "X11/Xlib.h"
|
#include "X11/Xlib.h"
|
||||||
|
#include "X11/Xatom.h"
|
||||||
|
#include "X11/Xutil.h"
|
||||||
|
|
||||||
class wxMouseEvent;
|
class wxMouseEvent;
|
||||||
class wxKeyEvent;
|
class wxKeyEvent;
|
||||||
|
@@ -42,6 +42,9 @@ bool wxPopupWindow::Create( wxWindow *parent, int style )
|
|||||||
// All dialogs should really have this style
|
// All dialogs should really have this style
|
||||||
m_windowStyle = style;
|
m_windowStyle = style;
|
||||||
m_windowStyle |= wxTAB_TRAVERSAL;
|
m_windowStyle |= wxTAB_TRAVERSAL;
|
||||||
|
|
||||||
|
wxPoint pos( 20,20 );
|
||||||
|
wxSize size( 20,20 );
|
||||||
|
|
||||||
m_parent = parent;
|
m_parent = parent;
|
||||||
if (m_parent) m_parent->AddChild( this );
|
if (m_parent) m_parent->AddChild( this );
|
||||||
|
@@ -38,11 +38,9 @@
|
|||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/x11/private.h"
|
#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
|
// wxTopLevelWindowX11 creation
|
||||||
@@ -256,8 +254,7 @@ void wxTopLevelWindowX11::SetIcon(const wxIcon& icon)
|
|||||||
wmHints->icon_mask = (Pixmap) icon.GetMask()->GetPixmap();
|
wmHints->icon_mask = (Pixmap) icon.GetMask()->GetPixmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
XSetWMHints(wxGlobalDisplay(), (Window) GetMainWindow(),
|
XSetWMHints(wxGlobalDisplay(), (Window) GetMainWindow(), wmHints);
|
||||||
wmHints);
|
|
||||||
XFree(wmHints);
|
XFree(wmHints);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -325,7 +325,11 @@ void wxWindowX11::DoCaptureMouse()
|
|||||||
}
|
}
|
||||||
|
|
||||||
res = XGrabKeyboard(wxGlobalDisplay(), (Window) GetMainWindow(),
|
res = XGrabKeyboard(wxGlobalDisplay(), (Window) GetMainWindow(),
|
||||||
|
#if 0
|
||||||
|
ShiftMask | LockMask | ControlMask | Mod1Mask | Mod2Mask | Mod3Mask | Mod4Mask | Mod5Mask,
|
||||||
|
#else
|
||||||
FALSE,
|
FALSE,
|
||||||
|
#endif
|
||||||
GrabModeAsync,
|
GrabModeAsync,
|
||||||
GrabModeAsync,
|
GrabModeAsync,
|
||||||
CurrentTime);
|
CurrentTime);
|
||||||
@@ -1309,8 +1313,9 @@ bool wxWindowX11::SetBackgroundColour(const wxColour& col)
|
|||||||
if (!GetMainWindow())
|
if (!GetMainWindow())
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
wxColour colour( col );
|
||||||
XSetWindowAttributes attrib;
|
XSetWindowAttributes attrib;
|
||||||
attrib.background_pixel = ((wxColour&)col).AllocColour(wxGlobalDisplay());
|
attrib.background_pixel = colour.AllocColour(wxGlobalDisplay());
|
||||||
|
|
||||||
XChangeWindowAttributes(wxGlobalDisplay(),
|
XChangeWindowAttributes(wxGlobalDisplay(),
|
||||||
(Window) GetMainWindow(),
|
(Window) GetMainWindow(),
|
||||||
|
Reference in New Issue
Block a user