diff options
author | phintuka <phintuka> | 2008-06-05 14:42:14 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-06-05 14:42:14 +0000 |
commit | ea285ce87b39f5806ec9535d953969758a5404f6 (patch) | |
tree | e09d4ec07e9f47e242a6e0cfc8e5ebd21c454570 | |
parent | 9181d120d6aac1e78f66531e5d1c9abb9b5b8d56 (diff) | |
download | xineliboutput-ea285ce87b39f5806ec9535d953969758a5404f6.tar.gz xineliboutput-ea285ce87b39f5806ec9535d953969758a5404f6.tar.bz2 |
Removed static variable
-rw-r--r-- | xine_sxfe_frontend.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c index da7d01a4..c4e23a7b 100644 --- a/xine_sxfe_frontend.c +++ b/xine_sxfe_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_sxfe_frontend.c,v 1.46 2008-06-05 13:46:23 phintuka Exp $ + * $Id: xine_sxfe_frontend.c,v 1.47 2008-06-05 14:42:14 phintuka Exp $ * */ @@ -131,6 +131,7 @@ typedef struct sxfe_s { #ifdef HAVE_XDPMS BOOL dpms_state; #endif + Time prev_click_time; /* time of previous mouse button click (grab double clicks) */ int xinerama_screen; int xinerama_x, xinerama_y; @@ -1380,13 +1381,12 @@ static int sxfe_run(frontend_t *this_gen) { XButtonEvent *bev = (XButtonEvent *) &event; if(bev->button == Button1) { - static Time prev_time = 0; - if(bev->time - prev_time < DOUBLECLICK_TIME) { + if(bev->time - this->prev_click_time < DOUBLECLICK_TIME) { /* Toggle fullscreen */ sxfe_toggle_fullscreen(this); - prev_time = 0; /* don't react to third click ... */ + this->prev_click_time = 0; /* don't react to third click ... */ } else { - prev_time = bev->time; + this->prev_click_time = bev->time; if(!this->fullscreen && this->no_border && !this->dragging) { this->dragging = 1; this->dragging_x = bev->x_root; |