dix: replace wClient() macro by dixClientForWindow() inline function

Hide internals (drop the need to include windowstr.h), make it typesafe
as well as the naming easier to understand.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-09-04 18:42:15 +02:00
parent 261c49b4c2
commit d697618c16
13 changed files with 80 additions and 33 deletions

View File

@@ -44,6 +44,7 @@
#include <dix-config.h>
#include "dix/dix_priv.h"
#include "dix/resource_priv.h"
#include "os/osdep.h"
#include "compint.h"
@@ -216,7 +217,7 @@ updateOverlayWindow(ScreenPtr pScreen)
/* Let's resize the overlay window. */
vlist[0] = w;
vlist[1] = h;
return ConfigureWindow(pWin, CWWidth | CWHeight, vlist, wClient(pWin));
return ConfigureWindow(pWin, CWWidth | CWHeight, vlist, dixClientForWindow(pWin));
}
/* Let's be on the safe side and not assume an overlay window is