Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@1027 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
f7fb2d41e1
commit
9ea54ea936
@ -72,7 +72,8 @@ cliprdr_send_simple_native_format_announce(uint32 format)
|
|||||||
void
|
void
|
||||||
cliprdr_send_native_format_announce(uint8 * formats_data, uint32 formats_data_length)
|
cliprdr_send_native_format_announce(uint8 * formats_data, uint32 formats_data_length)
|
||||||
{
|
{
|
||||||
cliprdr_send_packet(CLIPRDR_FORMAT_ANNOUNCE, CLIPRDR_REQUEST, formats_data, formats_data_length);
|
cliprdr_send_packet(CLIPRDR_FORMAT_ANNOUNCE, CLIPRDR_REQUEST, formats_data,
|
||||||
|
formats_data_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
16
xclip.c
16
xclip.c
@ -338,10 +338,12 @@ xclip_handle_PropertyNotify(XPropertyEvent * event)
|
|||||||
{
|
{
|
||||||
DEBUG_CLIPBOARD(("x_clip_handle_PropertyNotify: g_waiting_for_INCR != 0\n"));
|
DEBUG_CLIPBOARD(("x_clip_handle_PropertyNotify: g_waiting_for_INCR != 0\n"));
|
||||||
|
|
||||||
while (bytes_left > 0) {
|
while (bytes_left > 0)
|
||||||
if ((XGetWindowProperty(g_display, g_wnd, rdesktop_clipboard_target_atom, offset,
|
{
|
||||||
4096L, False, AnyPropertyType,
|
if ((XGetWindowProperty
|
||||||
&type, &format, &nitems, &bytes_left, &data) != Success))
|
(g_display, g_wnd, rdesktop_clipboard_target_atom, offset, 4096L,
|
||||||
|
False, AnyPropertyType, &type, &format, &nitems, &bytes_left,
|
||||||
|
&data) != Success))
|
||||||
{
|
{
|
||||||
XFree(data);
|
XFree(data);
|
||||||
return;
|
return;
|
||||||
@ -350,7 +352,8 @@ xclip_handle_PropertyNotify(XPropertyEvent * event)
|
|||||||
if (nitems == 0)
|
if (nitems == 0)
|
||||||
{
|
{
|
||||||
XGetWindowAttributes(g_display, g_wnd, &wa);
|
XGetWindowAttributes(g_display, g_wnd, &wa);
|
||||||
XSelectInput(g_display, g_wnd, (wa.your_event_mask ^ PropertyChangeMask));
|
XSelectInput(g_display, g_wnd,
|
||||||
|
(wa.your_event_mask ^ PropertyChangeMask));
|
||||||
XFree(data);
|
XFree(data);
|
||||||
g_waiting_for_INCR = 0;
|
g_waiting_for_INCR = 0;
|
||||||
|
|
||||||
@ -380,7 +383,8 @@ xclip_handle_PropertyNotify(XPropertyEvent * event)
|
|||||||
strncpy((char *) tmp, (char *) g_clip_buffer, g_clip_buflen);
|
strncpy((char *) tmp, (char *) g_clip_buffer, g_clip_buflen);
|
||||||
xfree(g_clip_buffer);
|
xfree(g_clip_buffer);
|
||||||
|
|
||||||
strncpy((char *) (tmp + g_clip_buflen), (char *) translated_data, length);
|
strncpy((char *) (tmp + g_clip_buflen), (char *) translated_data,
|
||||||
|
length);
|
||||||
xfree(translated_data);
|
xfree(translated_data);
|
||||||
|
|
||||||
g_clip_buffer = tmp;
|
g_clip_buffer = tmp;
|
||||||
|
Loading…
Reference in New Issue
Block a user