summaryrefslogtreecommitdiff
path: root/zwgc/xcut.c
diff options
context:
space:
mode:
Diffstat (limited to 'zwgc/xcut.c')
-rw-r--r--zwgc/xcut.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zwgc/xcut.c b/zwgc/xcut.c
index 8f2d46f..ce698b6 100644
--- a/zwgc/xcut.c
+++ b/zwgc/xcut.c
@@ -50,6 +50,7 @@ char *getSelectedText()
return(selected_text);
}
+#ifdef notdef
static string x_gram_to_string(gram)
x_gram *gram;
{
@@ -74,6 +75,7 @@ static string x_gram_to_string(gram)
text_so_far = string_Concat2(text_so_far, "\n");
return(text_so_far);
}
+#endif
/*
*
@@ -176,7 +178,8 @@ void xcut(dpy,event,desc_context)
case ButtonPress:
if ( (event->xbutton.state)&ShiftMask ) {
if (event->xbutton.button==Button1) {
- xunmark(dpy,selecting_in,NULL,desc_context);
+ if (selecting_in)
+ xunmark(dpy,selecting_in,NULL,desc_context);
if (selected_text) free(selected_text);
selected_text = NULL;
if (! xselGetOwnership(dpy,w,event->xbutton.time)) {