1 |
|
/* |
2 |
|
* clip_unix.cpp - Clipboard handling, Unix implementation |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) Christian Bauer and Marc Hellwig |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
240 |
|
|
241 |
|
|
242 |
|
/* |
243 |
< |
* Timed wait for an SelectionNotify event |
243 |
> |
* Timed wait for a SelectionNotify event |
244 |
|
*/ |
245 |
|
|
246 |
|
static const uint64 SELECTION_MAX_WAIT = 500000; // 500 ms |
296 |
|
void ClipExit(void) |
297 |
|
{ |
298 |
|
// Close window |
299 |
< |
XDestroyWindow(x_display, clip_win); |
299 |
> |
if (clip_win) |
300 |
> |
XDestroyWindow(x_display, clip_win); |
301 |
|
} |
302 |
|
|
303 |
|
|
496 |
|
0x2f, 0x3c, 0, 0, 0, 0, // move.l #outbuf,-(sp) |
497 |
|
0xa9, 0xfe, // PutScrap() |
498 |
|
0x58, 0x8f, // addq.l #4,sp |
499 |
< |
M68K_RTS >> 8, M68K_RTS |
499 |
> |
M68K_RTS >> 8, M68K_RTS & 0xff |
500 |
|
}; |
501 |
|
r.d[0] = sizeof(proc); |
502 |
|
Execute68kTrap(0xa71e, &r); // NewPtrSysClear() |
662 |
|
out_event.xselection.time = req->time; |
663 |
|
XSendEvent(x_display, req->requestor, False, 0, &out_event); |
664 |
|
} |
665 |
+ |
|
666 |
+ |
return handled; |
667 |
|
} |
668 |
|
|
669 |
|
void ClipboardSelectionRequest(XSelectionRequestEvent *req) |