Make sure we notify other rdesktops that we exited so that they can update
their clipboard status. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1213 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
b48e542deb
commit
b1f202a761
1
proto.h
1
proto.h
@ -209,6 +209,7 @@ void ui_clip_request_data(uint32 format);
|
|||||||
void ui_clip_sync(void);
|
void ui_clip_sync(void);
|
||||||
void ui_clip_set_mode(const char *optarg);
|
void ui_clip_set_mode(const char *optarg);
|
||||||
void xclip_init(void);
|
void xclip_init(void);
|
||||||
|
void xclip_deinit(void);
|
||||||
/* xkeymap.c */
|
/* xkeymap.c */
|
||||||
BOOL xkeymap_from_locale(const char *locale);
|
BOOL xkeymap_from_locale(const char *locale);
|
||||||
FILE *xkeymap_open(const char *filename);
|
FILE *xkeymap_open(const char *filename);
|
||||||
|
10
xclip.c
10
xclip.c
@ -1173,3 +1173,13 @@ xclip_init(void)
|
|||||||
targets[num_targets++] = format_string_atom;
|
targets[num_targets++] = format_string_atom;
|
||||||
targets[num_targets++] = XA_STRING;
|
targets[num_targets++] = XA_STRING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
xclip_deinit(void)
|
||||||
|
{
|
||||||
|
if (XGetSelectionOwner(g_display, primary_atom) == g_wnd)
|
||||||
|
XSetSelectionOwner(g_display, primary_atom, None, acquire_time);
|
||||||
|
if (XGetSelectionOwner(g_display, clipboard_atom) == g_wnd)
|
||||||
|
XSetSelectionOwner(g_display, clipboard_atom, None, acquire_time);
|
||||||
|
xclip_notify_change();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user