[gtk-vnc] Only handle motion events when initialized.
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Only handle motion events when initialized.
- Date: Tue, 22 Jun 2010 20:38:22 +0000 (UTC)
commit 06a55366269011bde38c6c2c73d78e6ba7b05742
Author: Jonh Wendell <jwendell gnome org>
Date: Tue Jun 22 16:48:36 2010 -0300
Only handle motion events when initialized.
Closes #622429.
src/vncdisplay.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index 8eeb243..36cf783 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -587,12 +587,12 @@ static gboolean motion_event(GtkWidget *widget, GdkEventMotion *motion)
int ww, wh;
int fbw, fbh;
- fbw = vnc_framebuffer_get_width(VNC_FRAMEBUFFER(priv->fb));
- fbh = vnc_framebuffer_get_height(VNC_FRAMEBUFFER(priv->fb));
-
if (priv->conn == NULL || !vnc_connection_is_initialized(priv->conn))
return FALSE;
+ fbw = vnc_framebuffer_get_width(VNC_FRAMEBUFFER(priv->fb));
+ fbh = vnc_framebuffer_get_height(VNC_FRAMEBUFFER(priv->fb));
+
/* In relative mode, only move the server mouse pointer
* if the client grab is active */
if (!priv->absolute && !priv->in_pointer_grab)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]