From a70ca93c431d998bc82b5672ff83e30bdfe28a9f Mon Sep 17 00:00:00 2001 From: Not Nyguen Doze Date: Mon, 5 Dec 2011 15:16:45 -0800 Subject: [PATCH] Add option for WITH_DEBUG_WND for window order updating, already existing in code Correct sign on variables in xf_rail_paint --- client/X11/xf_rail.c | 8 +++++--- client/X11/xf_rail.h | 2 +- cmake/ConfigOptions.cmake | 1 + config.h.in | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/client/X11/xf_rail.c b/client/X11/xf_rail.c index dc432296b..496cd5cce 100644 --- a/client/X11/xf_rail.c +++ b/client/X11/xf_rail.c @@ -28,14 +28,16 @@ #include "xf_window.h" #include "xf_rail.h" -void xf_rail_paint(xfInfo* xfi, rdpRail* rail, uint32 uleft, uint32 utop, uint32 uright, uint32 ubottom) +void xf_rail_paint(xfInfo* xfi, rdpRail* rail, sint32 uleft, sint32 utop, uint32 uright, uint32 ubottom) { xfWindow* xfw; rdpWindow* window; boolean intersect; uint32 iwidth, iheight; - uint32 ileft, itop, iright, ibottom; - uint32 wleft, wtop, wright, wbottom; + sint32 ileft, itop; + uint32 iright, ibottom; + sint32 wleft, wtop; + uint32 wright, wbottom; window_list_rewind(rail->list); diff --git a/client/X11/xf_rail.h b/client/X11/xf_rail.h index 3d768bb8e..0c66e1caa 100644 --- a/client/X11/xf_rail.h +++ b/client/X11/xf_rail.h @@ -22,7 +22,7 @@ #include "xfreerdp.h" -void xf_rail_paint(xfInfo* xfi, rdpRail* rail, uint32 uleft, uint32 utop, uint32 uright, uint32 ubottom); +void xf_rail_paint(xfInfo* xfi, rdpRail* rail, sint32 uleft, sint32 utop, uint32 uright, uint32 ubottom); void xf_rail_register_callbacks(xfInfo* xfi, rdpRail* rail); void xf_rail_send_client_system_command(xfInfo* xfi, uint32 windowId, uint16 command); void xf_rail_send_activate(xfInfo* xfi, Window xwindow, boolean enabled); diff --git a/cmake/ConfigOptions.cmake b/cmake/ConfigOptions.cmake index 9157a25d6..ba4b7e004 100644 --- a/cmake/ConfigOptions.cmake +++ b/cmake/ConfigOptions.cmake @@ -22,3 +22,4 @@ option(WITH_SSE2 "Use SSE2 optimization." OFF) option(WITH_SSE2_TARGET "Allow compiler to generate SSE2 instructions." OFF) option(WITH_DEBUG_REDIR "Redirection debug messages" OFF) option(WITH_DEBUG_CLIPRDR "Print clipboard redirection debug messages" OFF) +option(WITH_DEBUG_WND "Print window order debug messages" OFF) diff --git a/config.h.in b/config.h.in index cf70023da..979fa9780 100644 --- a/config.h.in +++ b/config.h.in @@ -45,5 +45,6 @@ #cmakedefine WITH_DEBUG_ORDERS #cmakedefine WITH_DEBUG_REDIR #cmakedefine WITH_DEBUG_CLIPRDR +#cmakedefine WITH_DEBUG_WND #endif