Move fake_configure_notify to libi3

This commit is contained in:
Michael Stapelberg
2011-10-09 13:40:15 +01:00
parent d78a2444e5
commit 29c185dd0b
4 changed files with 61 additions and 41 deletions

View File

@ -5,6 +5,9 @@
#ifndef _LIBI3_H
#define _LIBI3_H
#include <xcb/xcb.h>
#include <xcb/xproto.h>
/**
* Try to get the socket path from X11 and return NULL if it doesnt work.
*
@ -67,4 +70,12 @@ int ipc_send_message(int sockfd, uint32_t message_size,
int ipc_recv_message(int sockfd, uint32_t message_type,
uint32_t *reply_length, uint8_t **reply);
/**
* Generates a configure_notify event and sends it to the given window
* Applications need this to think theyve configured themselves correctly.
* The truth is, however, that we will manage them.
*
*/
void fake_configure_notify(xcb_connection_t *conn, xcb_rectangle_t r, xcb_window_t window, int border_width);
#endif