Window xwindow = (Window) GetMainWindow();
wxCHECK_RET( xwindow, wxT("invalid window") );
-
+
+ wxCHECK_RET( AcceptsFocus(), wxT("set focus on window that doesn't accept the focus") );
+
+#if 0
+ if (GetName() == "scrollBar")
+ {
+ char *crash = NULL;
+ *crash = 0;
+ }
+#endif
+
if (wxWindowIsVisible(xwindow))
{
XSetInputFocus( wxGlobalDisplay(), xwindow, RevertToParent, CurrentTime );
else
{
wxRect rect;
- if (dx < 0) rect.x = cw+dx; else rect.x = s_x;
- if (dy < 0) rect.y = ch+dy; else rect.y = s_y;
+ if (dx < 0) rect.x = cw+dx + offset.x; else rect.x = s_x;
+ if (dy < 0) rect.y = ch+dy + offset.y; else rect.y = s_y;
if (dy != 0) rect.width = cw; else rect.width = abs(dx);
if (dx != 0) rect.height = ch; else rect.height = abs(dy);
{
if (!m_updateRegion.IsEmpty())
{
+ // wxLogDebug("wxWindowX11::Update: %s", GetClassInfo()->GetClassName());
// Actually send erase events.
SendEraseEvents();
wxEraseEvent erase_event( GetId(), &dc );
erase_event.SetEventObject( this );
-
+
if (!GetEventHandler()->ProcessEvent(erase_event))
{
Window xwindow = (Window) GetMainWindow();
wxPaintEvent paint_event( GetId() );
paint_event.SetEventObject( this );
GetEventHandler()->ProcessEvent( paint_event );
-
- m_updateRegion.Clear();
+ m_updateRegion.Clear();
m_clipPaintRegion = FALSE;
}
// Set the input focus if couldn't do it before
if (m_needsInputFocus)
+ {
SetFocus();
+ }
}
// ----------------------------------------------------------------------------