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:
Peter Åstrand 2005-11-14 14:46:16 +00:00
parent f7fb2d41e1
commit 9ea54ea936
2 changed files with 18 additions and 13 deletions

View File

@ -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

18
xclip.c
View File

@ -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;
@ -372,7 +375,7 @@ xclip_handle_PropertyNotify(XPropertyEvent * event)
uint32 length = nitems; uint32 length = nitems;
uint8 *tmp; uint8 *tmp;
offset += (length/4); offset += (length / 4);
DEBUG_CLIPBOARD(("Translating linebreaks before sending data\n")); DEBUG_CLIPBOARD(("Translating linebreaks before sending data\n"));
translated_data = lf2crlf(data, &length); translated_data = lf2crlf(data, &length);
@ -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;