xfreerdp: Fix window shape
authorPeter Harris <pharris@opentext.com>
Thu, 10 Sep 2015 22:15:55 +0000 (18:15 -0400)
committerPeter Harris <pharris@opentext.com>
Thu, 10 Sep 2015 22:15:55 +0000 (18:15 -0400)
commit5f2f68f0e7d2d5c86cb10e357af950695662134c
treea52b12b8d3bf854fa3224c515b1159fc72196a84
parentaff46f27f5b07fdbf15d7e89982da27320338c9e
xfreerdp: Fix window shape

Don't abort the entire xf_rail_window_common function when the window is
already in the correct location.

To reproduce:
 - move an application off the edge of the screen
 - resize the window to cause a shape to be set
 - move the application window fully on the screen
 - resize the application window larger
 - note lack of drawing in newly enlarged portion of window

Bug introduced in abf6d4f71ea901e31ee2d1b4625fa805af6b0cc9 "xfreerdp:
prepare RAIL migration away from libfreerdp-rail" when
xf_rail_MoveWindow was copy-and-pasted into xf_rail_window_common
without noticing that the "return" would omit the rest of the combined
function, not just the portion that was pasted.
client/X11/xf_rail.c