1 |
|
/* |
2 |
|
* clip_unix.cpp - Clipboard handling, Unix implementation |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig |
4 |
> |
* SheepShaver (C) 1997-2008 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 |
|
|
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) |