formatting fixes. added vim modeline

SVN revision: 11391
This commit is contained in:
tsauerbeck 2004-08-26 18:05:25 +00:00 committed by tsauerbeck
parent 0360534032
commit c781c0b4bc
1 changed files with 23 additions and 19 deletions

View File

@ -1,3 +1,7 @@
/*
* vim:ts=8:sw=3:sts=3:noexpandtab
*/
#include "Ecore.h"
#include "ecore_x_private.h"
#include "Ecore_X.h"
@ -239,11 +243,11 @@ ecore_x_window_defaults_set(Ecore_X_Window win)
void
ecore_x_window_del(Ecore_X_Window win)
{
/* sorry sir, deleting the root window doesn't sound like
* a smart idea.
*/
if (win)
XDestroyWindow(_ecore_x_disp, win);
/* sorry sir, deleting the root window doesn't sound like
* a smart idea.
*/
if (win)
XDestroyWindow(_ecore_x_disp, win);
}
/**
@ -254,23 +258,23 @@ ecore_x_window_del(Ecore_X_Window win)
void
ecore_x_window_delete_request_send(Ecore_X_Window win)
{
XEvent xev;
XEvent xev;
/* sorry sir, deleting the root window doesn't sound like
* a smart idea.
*/
if (!win)
return;
/* sorry sir, deleting the root window doesn't sound like
* a smart idea.
*/
if (!win)
return;
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
xev.xclient.window = win;
xev.xclient.message_type = _ecore_x_atom_wm_protocols;
xev.xclient.format = 32;
xev.xclient.data.l[0] = _ecore_x_atom_wm_delete_window;
xev.xclient.data.l[1] = CurrentTime;
xev.xclient.type = ClientMessage;
xev.xclient.display = _ecore_x_disp;
xev.xclient.window = win;
xev.xclient.message_type = _ecore_x_atom_wm_protocols;
xev.xclient.format = 32;
xev.xclient.data.l[0] = _ecore_x_atom_wm_delete_window;
xev.xclient.data.l[1] = CurrentTime;
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
}
/**