Mercurial > emacs
comparison src/xselect.c @ 5131:69078817ec92
(Fx_disown_selection_internal): When making the fake
event for x_handle_selection_clear, use SELECTION_EVENT_... macros.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 23 Nov 1993 10:40:17 +0000 |
parents | 1fc792473491 |
children | c0bd54986550 |
comparison
equal
deleted
inserted
replaced
5130:ddee29e260d2 | 5131:69078817ec92 |
---|---|
1659 /* It doesn't seem to be guaranteed that a SelectionClear event will be | 1659 /* It doesn't seem to be guaranteed that a SelectionClear event will be |
1660 generated for a window which owns the selection when that window sets | 1660 generated for a window which owns the selection when that window sets |
1661 the selection owner to None. The NCD server does, the MIT Sun4 server | 1661 the selection owner to None. The NCD server does, the MIT Sun4 server |
1662 doesn't. So we synthesize one; this means we might get two, but | 1662 doesn't. So we synthesize one; this means we might get two, but |
1663 that's ok, because the second one won't have any effect. */ | 1663 that's ok, because the second one won't have any effect. */ |
1664 event.display = display; | 1664 SELECTION_EVENT_DISPLAY (&event) = display; |
1665 event.selection = selection_atom; | 1665 SELECTION_EVENT_SELECTION (&event) = selection_atom; |
1666 event.time = timestamp; | 1666 SELECTION_EVENT_TIME (&event) = timestamp; |
1667 x_handle_selection_clear (&event); | 1667 x_handle_selection_clear (&event); |
1668 | 1668 |
1669 return Qt; | 1669 return Qt; |
1670 } | 1670 } |
1671 | 1671 |