mirror of
https://github.com/0intro/conterm
synced 2024-11-22 05:41:28 +03:00
mac
This commit is contained in:
parent
e4f9a4578a
commit
06b60293ad
@ -999,7 +999,7 @@ _xgetsnarf(Display *xd)
|
||||
{
|
||||
uchar *data, *xdata;
|
||||
Atom clipboard, type, prop;
|
||||
ulong len, lastlen, dummy;
|
||||
unsigned long len, lastlen, dummy;
|
||||
int fmt, i;
|
||||
Window w;
|
||||
|
||||
@ -1067,7 +1067,7 @@ _xgetsnarf(Display *xd)
|
||||
}
|
||||
/* get the property */
|
||||
data = nil;
|
||||
XGetWindowProperty(xd, xdrawable, prop, 0, SnarfSize/sizeof(ulong), 0,
|
||||
XGetWindowProperty(xd, xdrawable, prop, 0, SnarfSize/sizeof(unsigned long), 0,
|
||||
AnyPropertyType, &type, &fmt, &len, &dummy, &xdata);
|
||||
if((type != XA_STRING && type != utf8string) || len == 0){
|
||||
if(xdata)
|
||||
|
@ -4,11 +4,12 @@
|
||||
#include "fns.h"
|
||||
#include "error.h"
|
||||
|
||||
#undef write
|
||||
extern int panicking;
|
||||
void
|
||||
uartputs(char *s, int n)
|
||||
{
|
||||
// write(1, s, n);
|
||||
if(panicking)
|
||||
write(1, s, n);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user