ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/clip_unix.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/clip_unix.cpp (file contents):
Revision 1.10 by gbeauche, 2004-11-15T23:27:43Z vs.
Revision 1.13 by gbeauche, 2005-06-22T08:50:07Z

# Line 1 | Line 1
1   /*
2   *  clip_unix.cpp - Clipboard handling, Unix implementation
3   *
4 < *  SheepShaver (C) 1997-2004 Christian Bauer and Marc Hellwig
4 > *  SheepShaver (C) 1997-2005 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
# Line 240 | Line 240 | static bool read_property(Display *dpy,
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
# Line 296 | Line 296 | void ClipInit(void)
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  
# Line 661 | Line 662 | static bool handle_selection(XSelectionR
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines