wxString wxReparenter::sm_name;
bool wxReparenter::sm_exactMatch = false;
-static int ErrorHandler(Display* dpy, XErrorEvent* event)
+static int ErrorHandler(Display* WXUNUSED(dpy), XErrorEvent* WXUNUSED(event))
{
Xerror = True;
return False;
if (!WM_STATE)
WM_STATE = XInternAtom(display, "WM_STATE", False);
-#ifdef __WXDEBUG__
- if (!windowName.empty())
- wxLogDebug(_T("Waiting for window %s"), windowName.c_str());
-#endif
-
sm_done = false;
wxEventLoop eventLoop;
{
if (xevent->type == MapNotify)
{
- wxLogDebug(_T("Window was mapped"));
+ wxLogDebug(wxT("Window was mapped"));
}
if (xevent->type == MapNotify && !xevent->xmap.override_redirect &&
(client = (Window) FindAClientWindow((WXWindow) xevent->xmap.window, sm_name)))
{
- wxLogDebug(_T("Found a client window, about to reparent"));
+ wxLogDebug(wxT("Found a client window, about to reparent"));
wxASSERT(sm_toReparent->GetParent() == NULL);
sm_toReparent->SetHandle((WXWindow) client);
xevent->xmap.override_redirect &&
xevent->xmap.window)
{
- wxLogDebug(_T("Found an override redirect window, about to reparent"));
+ wxLogDebug(wxT("Found an override redirect window, about to reparent"));
sm_toReparent->SetHandle((WXWindow) xevent->xmap.window);
sm_newParent->AddChild(sm_toReparent);
wxASSERT(sm_toReparent->GetParent() == NULL);