1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-16 14:15:46 +01:00

- fixed a frame size in WPrefs menu editor

- removed // comments
- commented out printfs in unfinished selection code
This commit is contained in:
dan
2002-07-01 23:52:22 +00:00
parent 579eb01c6c
commit 048b43aea4
6 changed files with 22 additions and 18 deletions

View File

@@ -654,7 +654,7 @@ void WMDeleteEventHandler(WMView *view, unsigned long mask,
int WMIsDoubleClick(XEvent *event);
//int WMIsTripleClick(XEvent *event);
/*int WMIsTripleClick(XEvent *event);*/
void WMNextEvent(Display *dpy, XEvent *event);
@@ -1651,11 +1651,11 @@ void WMGetTextBlockProperties(WMText *tPtr, void *vtb, unsigned int *first,
int WMGetTextInsertType(WMText *tPtr);
//int WMGetTextBlocks(WMText *tPtr);
/*int WMGetTextBlocks(WMText *tPtr);
//void WMSetCurrentTextBlock(WMText *tPtr, int current);
void WMSetCurrentTextBlock(WMText *tPtr, int current);
//int WMGetCurrentTextBlock(WMText *tPtr);
int WMGetCurrentTextBlock(WMText *tPtr);*/
void WMPrependTextBlock(WMText *tPtr, void *vtb);

View File

@@ -62,7 +62,7 @@ WMDeleteSelectionHandler(WMView *view, Atom selection, Time timestamp)
if (!selHandlers)
return;
printf("deleting selection handler for %d", win);
/*//printf("deleting selection handler for %d", win);*/
WM_ITERATE_ARRAY(selHandlers, handler, iter) {
if (handler->view == view
@@ -71,16 +71,16 @@ WMDeleteSelectionHandler(WMView *view, Atom selection, Time timestamp)
if (handler->flags.done_pending) {
handler->flags.delete_pending = 1;
puts(": postponed because still pending");
/*//puts(": postponed because still pending");*/
return;
}
printf(": found & removed");
/*//printf(": found & removed");*/
WMRemoveFromArray(selHandlers, handler);
break;
}
}
printf("\n");
/*//printf("\n");*/
XGrabServer(dpy);
if (XGetSelectionOwner(dpy, selection) == win) {
@@ -349,8 +349,8 @@ handleNotifyEvent(XEvent *event)
void
W_HandleSelectionEvent(XEvent *event)
{
printf("%d received selection ", event->xany.window);
switch(event->type) {
/*//printf("%d received selection ", event->xany.window);*/
/*//switch(event->type) {
case SelectionNotify:
puts("notify"); break;
case SelectionRequest:
@@ -359,7 +359,7 @@ W_HandleSelectionEvent(XEvent *event)
puts("clear"); break;
default:
puts("unknown"); break;
}
}*/
if (event->type == SelectionNotify) {
handleNotifyEvent(event);
@@ -385,7 +385,7 @@ WMCreateSelectionHandler(WMView *view, Atom selection, Time timestamp,
WMPostNotificationName(WMSelectionOwnerDidChangeNotification,
(void*)selection, (void*)view);
printf("created selection handler for %d\n", W_VIEW_DRAWABLE(view));
/*//printf("created selection handler for %d\n", W_VIEW_DRAWABLE(view));*/
handler = wmalloc(sizeof(SelectionHandler));

View File

@@ -303,8 +303,10 @@ selectionNotification(void *observerData, WMNotification *notification)
WMView *newOwnerView = (WMView*)WMGetNotificationClientData(notification);
if (observerView != newOwnerView) {
/*
//if (tPtr->flags.ownsSelection)
// WMDeleteSelectionHandler(observerView, XA_PRIMARY, CurrentTime);
*/
lostSelection(observerView, XA_PRIMARY, NULL);
}
}
@@ -1598,7 +1600,7 @@ destroyTextField(TextField *tPtr)
#endif
WMReleaseFont(tPtr->font);
// use lostSelection() instead of WMDeleteSelectionHandler aici?
/*// use lostSelection() instead of WMDeleteSelectionHandler here?*/
WMDeleteSelectionHandler(tPtr->view, XA_PRIMARY, CurrentTime);
WMRemoveNotificationObserver(tPtr);