mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
30 lines
655 B
C++
30 lines
655 B
C++
|
/*
|
||
|
* $Id$
|
||
|
*
|
||
|
* Edewm, window manager
|
||
|
* Part of Equinox Desktop Environment (EDE).
|
||
|
* Copyright (c) 2000-2006 EDE Authors.
|
||
|
*
|
||
|
* This program is licenced under terms of the
|
||
|
* GNU General Public Licence version 2 or newer.
|
||
|
* See COPYING for details.
|
||
|
*/
|
||
|
|
||
|
#include "Utils.h"
|
||
|
#include <efltk/x.h>
|
||
|
|
||
|
void SendMessage(Window win, Atom a, Atom l)
|
||
|
{
|
||
|
XEvent ev;
|
||
|
long mask;
|
||
|
memset(&ev, 0, sizeof(ev));
|
||
|
ev.xclient.type = ClientMessage;
|
||
|
ev.xclient.window = win;
|
||
|
ev.xclient.message_type = a;
|
||
|
ev.xclient.format = 32;
|
||
|
ev.xclient.data.l[0] = long(l);
|
||
|
ev.xclient.data.l[1] = long(fl_event_time);
|
||
|
mask = 0L;
|
||
|
XSendEvent(fl_display, win, False, mask, &ev);
|
||
|
}
|