temporarily disabled middle-click paste under linux (causes crashing)
This commit is contained in:
parent
5ccd1665c9
commit
52a06e0896
1 changed files with 6 additions and 0 deletions
|
@ -1644,11 +1644,13 @@ local void MenuHandleButtonDown(unsigned b __attribute__((unused)))
|
|||
#ifdef USE_WIN32
|
||||
HGLOBAL handle;
|
||||
#elif defined(_XLIB_H_)
|
||||
/*
|
||||
Display *display;
|
||||
Window w;
|
||||
Atom rettype;
|
||||
unsigned long nitem, bytes;
|
||||
int retform, ret;
|
||||
*/
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -1744,6 +1746,7 @@ local void MenuHandleButtonDown(unsigned b __attribute__((unused)))
|
|||
}
|
||||
#elif defined(_XLIB_H_)
|
||||
|
||||
/*
|
||||
if (!(display = XOpenDisplay(NULL)))
|
||||
break;
|
||||
// if ((w = XGetSelectionOwner(display, XA_PRIMARY)) == None)
|
||||
|
@ -1756,6 +1759,9 @@ local void MenuHandleButtonDown(unsigned b __attribute__((unused)))
|
|||
(unsigned char **)&clipboard);
|
||||
|
||||
XCloseDisplay(display);
|
||||
*/
|
||||
clipboard = "";
|
||||
|
||||
#endif
|
||||
for (i = 0; mi->d.input.nch < mi->d.input.maxch && clipboard[i]; ++i) {
|
||||
if (clipboard[i] != '\r' && clipboard[i] != '\n') {
|
||||
|
|
Loading…
Add table
Reference in a new issue