key events queued



Gtk1.2.10

When I press a key, a large window is resized.
Pressing again the key, the window goes to the
initial state.

The code below fairly works, if I press the key only once.
If I keep pressing the key continously, as it takes some time
to resize the window, some queue of events is formed, 
odd things start happenning, and the sequence is lost.

Is there a solid way to solve this? for the mouse events 
we have the gdk_window_get_pointer magic, is there something
equivalent for key events?

  case GDK_Escape:
  if (key_Escape == 1) gdk_window_move_resize (forward);
  else gdk_window_move_resize (backward);

  key_Escape *= -1;
  break;

Carlos



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]