static void textEditedObserver(void *observerData, WMNotification *notification) { InspectorPanel *panel = (InspectorPanel *) observerData; if ((long)WMGetNotificationClientData(notification) != WMReturnTextMovement) return; showIconFor(WMWidgetScreen(panel->win), panel, NULL, NULL, USE_TEXT_FIELD); }
static void selectionNotification(void *observerData, WMNotification * notification) { WMView *observerView = (WMView *) observerData; WMView *newOwnerView = (WMView *) WMGetNotificationClientData(notification); if (observerView != newOwnerView) { /* //if (tPtr->flags.ownsSelection) // WMDeleteSelectionHandler(observerView, XA_PRIMARY, CurrentTime); */ lostSelection(observerView, XA_PRIMARY, NULL); } }