case DWET_ENTER:
case DWET_LEAVE:
handleEnterLeaveEvents(event);
+ break;
+ case DWET_GOTFOCUS:
+ handleGotFocusEvent(event);
+ break;
+ case DWET_CLOSE:
+ handleCloseEvent(event);
+ break;
+ case DWET_POSITION_SIZE:
+ handleGeometryEvent(event);
+ break;
default:
break;
}
}
}
+void QDirectFbInput::handleGotFocusEvent(const DFBEvent &event)
+{
+ QWindow *tlw = m_tlwMap.value(event.window.window_id);
+ QWindowSystemInterface::handleWindowActivated(tlw);
+}
+
+void QDirectFbInput::handleCloseEvent(const DFBEvent &event)
+{
+ QWindow *tlw = m_tlwMap.value(event.window.window_id);
+ QWindowSystemInterface::handleCloseEvent(tlw);
+}
+
+void QDirectFbInput::handleGeometryEvent(const DFBEvent &event)
+{
+ QWindow *tlw = m_tlwMap.value(event.window.window_id);
+ QRect rect(event.window.x, event.window.y, event.window.w, event.window.h);
+ QWindowSystemInterface::handleGeometryChange(tlw, rect);
+}
+
inline QPoint QDirectFbInput::globalPoint(const DFBEvent &event) const
{
QDirectFBPointer<IDirectFBWindow> window;
void handleWheelEvent(const DFBEvent &event);
void handleKeyEvents(const DFBEvent &event);
void handleEnterLeaveEvents(const DFBEvent &event);
+ void handleGotFocusEvent(const DFBEvent &event);
+ void handleCloseEvent(const DFBEvent& event);
+ void handleGeometryEvent(const DFBEvent& event);
inline QPoint globalPoint(const DFBEvent &event) const;