summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_wm.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-02-11 02:54:26 +0000
committerjsorg71 <jsorg71>2005-02-11 02:54:26 +0000
commit8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c (patch)
tree9639e1ff243c53e9bb8351c6d2e7a4149a018f4c /xrdp/xrdp_wm.c
parentcf6e2abd416c26105396fa0dd1834e3879fa2e08 (diff)
downloadxrdp-proprietary-8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c.tar.gz
xrdp-proprietary-8f2b4512cfb57dc1f9a719675ac15ecb3ad17a0c.zip
fix some crashes and added some debug messages
Diffstat (limited to 'xrdp/xrdp_wm.c')
-rw-r--r--xrdp/xrdp_wm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c
index bd6e9e7e..efaa5a8d 100644
--- a/xrdp/xrdp_wm.c
+++ b/xrdp/xrdp_wm.c
@@ -546,6 +546,13 @@ int xrdp_wm_init(struct xrdp_wm* self)
self->red = COLOR24(0xff, 0x00, 0x00);
self->green = COLOR24(0x00, 0xff, 0x00);
}
+ DEBUG(("sending cursor\n\r"));
+ xrdp_wm_load_pointer(self, "cursor1.cur", data, mask, &x, &y);
+ xrdp_wm_send_pointer(self, 1, data, mask, x, y);
+ DEBUG(("sending cursor\n\r"));
+ xrdp_wm_load_pointer(self, "cursor0.cur", data, mask, &x, &y);
+ xrdp_wm_send_pointer(self, 0, data, mask, x, y);
+
xrdp_login_wnd_create(self);
/* clear screen */
self->screen->bg_color = self->black;
@@ -553,10 +560,6 @@ int xrdp_wm_init(struct xrdp_wm* self)
xrdp_wm_set_focused(self, self->login_window);
- xrdp_wm_load_pointer(self, "cursor1.cur", data, mask, &x, &y);
- xrdp_wm_send_pointer(self, 1, data, mask, x, y);
- xrdp_wm_load_pointer(self, "cursor0.cur", data, mask, &x, &y);
- xrdp_wm_send_pointer(self, 0, data, mask, x, y);
#endif
return 0;
}