mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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:
parent
4cfb5152f7
commit
adb26d0543
@ -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,
|
||||||
|
13
src/window.c
13
src/window.c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user