Add a ConfigNotify hook.
Executed from the ConfigureWindow request, right before sending ConfigureNotify to the clients. This commit breaks the ScreenRec ABI. Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
parent
67a8c659f2
commit
b8a3be5f34
|
@ -2303,6 +2303,9 @@ ConfigureWindow(WindowPtr pWin, Mask mask, XID *vlist, ClientPtr client)
|
|||
return(Success);
|
||||
|
||||
ActuallyDoSomething:
|
||||
if (pWin->drawable.pScreen->ConfigNotify)
|
||||
(*pWin->drawable.pScreen->ConfigNotify)(pWin, x, y, w, h, bw, pSib);
|
||||
|
||||
if (SubStrSend(pWin, pParent))
|
||||
{
|
||||
memset(&event, 0, sizeof(xEvent));
|
||||
|
|
|
@ -399,6 +399,15 @@ typedef void (* PostChangeSaveUnderProcPtr)(
|
|||
WindowPtr /*pLayerWin*/,
|
||||
WindowPtr /*firstChild*/);
|
||||
|
||||
typedef void (* ConfigNotifyProcPtr)(
|
||||
WindowPtr /*pWin*/,
|
||||
int /*x*/,
|
||||
int /*y*/,
|
||||
int /*w*/,
|
||||
int /*h*/,
|
||||
int /*bw*/,
|
||||
WindowPtr /*pSib*/);
|
||||
|
||||
typedef void (* MoveWindowProcPtr)(
|
||||
WindowPtr /*pWin*/,
|
||||
int /*x*/,
|
||||
|
@ -581,6 +590,7 @@ typedef struct _Screen {
|
|||
MarkOverlappedWindowsProcPtr MarkOverlappedWindows;
|
||||
ChangeSaveUnderProcPtr ChangeSaveUnder;
|
||||
PostChangeSaveUnderProcPtr PostChangeSaveUnder;
|
||||
ConfigNotifyProcPtr ConfigNotify;
|
||||
MoveWindowProcPtr MoveWindow;
|
||||
ResizeWindowProcPtr ResizeWindow;
|
||||
GetLayerWindowProcPtr GetLayerWindow;
|
||||
|
|
Loading…
Reference in New Issue
Block a user