Get the timestamp from the client message.

2004-06-21  Anders Carlsson  <andersca@gnome.org>

	* src/window.c: (meta_window_client_message):
	Get the timestamp from the client message.
This commit is contained in:
Anders Carlsson 2004-06-21 09:53:23 +00:00 committed by Anders Carlsson
parent 4cfb5152f7
commit adb26d0543
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2004-06-21 Anders Carlsson <andersca@gnome.org>
* src/window.c: (meta_window_client_message):
Get the timestamp from the client message.
Sat Jun 19 02:21:08 2004 Soeren Sandmann <sandmann@daimi.au.dk> Sat Jun 19 02:21:08 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Fix bug 143333, support for update counter spec, and 109362, Fix bug 143333, support for update counter spec, and 109362,

View File

@ -3696,11 +3696,14 @@ meta_window_client_message (MetaWindow *window,
if (event->xclient.message_type == if (event->xclient.message_type ==
display->atom_net_close_window) display->atom_net_close_window)
{ {
/* I think the wm spec should maybe put a time Time timestamp;
* in this message, CurrentTime here is sort of
* bogus. But it rarely matters most likely. if (event->xclient.data.l[0] != 0)
*/ timestamp = event->xclient.data.l[0];
meta_window_delete (window, meta_display_get_current_time (window->display)); else
timestamp = meta_display_get_current_time (window->display);
meta_window_delete (window, timestamp);
return TRUE; return TRUE;
} }