diff options
author | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2005-02-01 23:04:36 +0000 |
---|---|---|
committer | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2005-02-01 23:04:36 +0000 |
commit | 95a40845fc51ef1e74107e0d32b8be45ddcb6a46 (patch) | |
tree | 86dfc76bf099b94c3bfd70184f191cf4bc86ceac /src/misc.c | |
parent | f826882a2aa417ec2c3ff11958d587a34de489c2 (diff) | |
download | xfwm4-95a40845fc51ef1e74107e0d32b8be45ddcb6a46.tar.gz |
Based on patches submitted by pasi.ov@gmail.com :
- Add shortcut for show desktop ()
- Add shortcuts upt to 12 for
Workspace
Move window to workspace
Launcher key
(Old svn revision: 12337)
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/misc.c b/src/misc.c index f132c3221..98cb9df6f 100644 --- a/src/misc.c +++ b/src/misc.c @@ -119,6 +119,26 @@ sendClientMessage (ScreenInfo *screen_info, Window w, int atom_id, Time timestam XSendEvent (myScreenGetXDisplay (screen_info), w, FALSE, 0L, (XEvent *)&ev); } +void +sendRootMessage (ScreenInfo *screen_info, int atom_id, long value, Time timestamp) +{ + DisplayInfo *display_info = NULL; + XClientMessageEvent ev; + + g_return_if_fail ((atom_id > 0) && (atom_id < NB_ATOMS)); + TRACE ("entering sendClientMessage"); + + display_info = screen_info->display_info; + ev.type = ClientMessage; + ev.window = screen_info->xroot; + ev.message_type = display_info->atoms[atom_id]; + ev.format = 32; + ev.data.l[0] = value; + ev.data.l[1] = timestamp; + XSendEvent (myScreenGetXDisplay (screen_info), screen_info->xroot, FALSE, + SubstructureRedirectMask | SubstructureNotifyMask, (XEvent *)&ev); +} + /* * it's safer to grab the display before calling this routine * Returns true if the given window is present and mapped on root |