Linking now

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-02-11 12:13:14 +00:00
parent 1b0b798d77
commit ea59668704
8 changed files with 19 additions and 8 deletions

View File

@@ -728,6 +728,8 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event)
info = CLASSINFO(wxWindowMSW);
# elif defined(__WXGTK__)
info = CLASSINFO(wxWindowGTK);
# elif defined(__WXX11__)
info = CLASSINFO(wxWindowX11);
# elif defined(__WXMGL__)
info = CLASSINFO(wxWindowMGL);
# elif defined(__WXPM__)

View File

@@ -598,6 +598,9 @@ void wxApp::DeletePendingObjects()
// Create an application context
bool wxApp::OnInitGui()
{
if (!wxAppBase::OnInitGui())
return FALSE;
// TODO: parse argv and get display to pass to XOpenDisplay
Display* dpy = XOpenDisplay(NULL);
m_initialDisplay = (WXDisplay*) dpy;
@@ -643,8 +646,12 @@ Window wxGetWindowParent(Window window)
{
Window parent, root = 0;
unsigned int noChildren = 0;
if (XQueryTree((Display*) wxGetDisplay(), window, & root, & parent,
NULL, & noChildren))
Window* children = NULL;
int res = XQueryTree((Display*) wxGetDisplay(), window, & root, & parent,
& children, & noChildren);
if (children)
XFree(children);
if (res)
return parent;
else
return (Window) 0;

View File

@@ -61,7 +61,7 @@ bool wxPopupWindow::Create( wxWindow *parent, int style )
XWMHints wm_hints;
long xattributes_mask =
CWEventMask |
CWOverrideRedirect |
CWBorderPixel | CWBackPixel;
xattributes.background_pixel = BlackPixel( xdisplay, xscreen );
xattributes.border_pixel = BlackPixel( xdisplay, xscreen );

View File

@@ -93,7 +93,7 @@ bool wxTopLevelWindowX11::Create(wxWindow *parent,
XWMHints wm_hints;
long xattributes_mask =
CWEventMask |
CWOverrideRedirect |
CWBorderPixel | CWBackPixel;
xattributes.background_pixel = BlackPixel( xdisplay, xscreen );
xattributes.border_pixel = BlackPixel( xdisplay, xscreen );

View File

@@ -147,7 +147,8 @@ bool wxWindowX11::Create(wxWindow *parent, wxWindowID id,
Window window = XCreateSimpleWindow(wxGlobalDisplay(), parentWindow,
x, y, w, h, 0,
m_backgroundColour.AllocColour(wxGlobalDisplay()),
m_foregroundColour.AllocColour(wxGlobalDisplay()));
m_foregroundColour.AllocColour(wxGlobalDisplay()));
m_mainWidget = (WXWindow) window;
// Select event types wanted
XSelectInput(wxGlobalDisplay(), window,