mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
produce warning when invalid events with no timestamp are received, rather
2006-02-03 Thomas Thurman <thomas thurman org uk> * src/display.c (event_callback): produce warning when invalid events with no timestamp are received, rather than failing an assertion
This commit is contained in:
parent
63d978d228
commit
b5c199c6e6
@ -1,3 +1,9 @@
|
|||||||
|
2006-02-03 Thomas Thurman <thomas thurman org uk>
|
||||||
|
|
||||||
|
* src/display.c (event_callback): produce warning when invalid
|
||||||
|
events with no timestamp are received, rather than failing an
|
||||||
|
assertion
|
||||||
|
|
||||||
Thu Feb 2 17:58:22 2006 Søren Sandmann <sandmann@redhat.com>
|
Thu Feb 2 17:58:22 2006 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* compositor.c (process_map): update the pixmap.
|
* compositor.c (process_map): update the pixmap.
|
||||||
|
@ -1607,9 +1607,21 @@ event_callback (XEvent *event,
|
|||||||
|
|
||||||
if (window && ((event->type == KeyPress) || (event->type == ButtonPress)))
|
if (window && ((event->type == KeyPress) || (event->type == ButtonPress)))
|
||||||
{
|
{
|
||||||
g_assert (CurrentTime != display->current_time);
|
if (CurrentTime == display->current_time)
|
||||||
meta_window_set_user_time (window, display->current_time);
|
{
|
||||||
sanity_check_timestamps (display, display->current_time);
|
/* We can't use missing (i.e. invalid) timestamps to set user time,
|
||||||
|
* nor do we want to use them to sanity check other timestamps.
|
||||||
|
* See bug 313490 for more details.
|
||||||
|
*/
|
||||||
|
meta_warning ("Event has no timestamp! You may be using a broken "
|
||||||
|
"program such as xse. Please ask the authors of that "
|
||||||
|
"program to fix it.\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
meta_window_set_user_time (window, display->current_time);
|
||||||
|
sanity_check_timestamps (display, display->current_time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (event->type)
|
switch (event->type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user