diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-02-27 22:55:47 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-02-27 22:55:47 +0100 |
commit | 4c661c39326d815318cabea213a405fb31faec96 (patch) | |
tree | 1cdb613c53db17e3d7064000e780291fcf1dbc48 /source/x11-helper.c | |
parent | bb2f0d8b837f4829d9f5d24d33f9f81097250ebc (diff) |
Move most of window modi to xcb
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r-- | source/x11-helper.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c index c4f63a79..bad7fec6 100644 --- a/source/x11-helper.c +++ b/source/x11-helper.c @@ -367,22 +367,6 @@ void monitor_active ( xcb_connection_t *xcb_connection, workarea *mon ) monitor_dimensions ( xcb_connection, xcb_screen, 0, 0, mon ); } -int window_send_message ( Display *display, Window trg, Window subject, Atom atom, unsigned long protocol, unsigned long mask, Time time ) -{ - XEvent e; - memset ( &e, 0, sizeof ( XEvent ) ); - e.xclient.type = ClientMessage; - e.xclient.message_type = atom; - e.xclient.window = subject; - e.xclient.data.l[0] = protocol; - e.xclient.data.l[1] = time; - e.xclient.send_event = True; - e.xclient.format = 32; - int r = XSendEvent ( display, trg, False, mask, &e ) ? 1 : 0; - XFlush ( display ); - return r; -} - int take_keyboard ( Display *display, Window w ) { for ( int i = 0; i < 500; i++ ) { |