aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-04-14 17:38:06 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-05-11 18:53:27 +0200
commitdd4f18f09b3424bee319461ad4ff61c4d7a31bd4 (patch)
tree9d7c5f5e96c3e76f0e69115ecc2b8a97f153b5f8
parentd1754f8067afdf11216c236fdb9a7f1464345065 (diff)
downloadnx-libs-dd4f18f09b3424bee319461ad4ff61c4d7a31bd4.tar.gz
nx-libs-dd4f18f09b3424bee319461ad4ff61c4d7a31bd4.tar.bz2
nx-libs-dd4f18f09b3424bee319461ad4ff61c4d7a31bd4.zip
Window.c: add debug output
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index e86d85f86..c18ebde97 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -1863,6 +1863,10 @@ void nxagentSetWMState(WindowPtr pWin, CARD32 desired)
-+ */
Bool nxagentRealizeWindow(WindowPtr pWin)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: running for window [0x%x]....\n", __func__, pWin->drawable.id);
+ #endif
+
if (nxagentScreenTrap)
{
return True;
@@ -1910,6 +1914,10 @@ Bool nxagentRealizeWindow(WindowPtr pWin)
/* See nxagentRealizeWindow for a description */
Bool nxagentUnrealizeWindow(WindowPtr pWin)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: running for window [0x%x]....\n", __func__, pWin->drawable.id);
+ #endif
+
if (nxagentScreenTrap)
{
return True;
@@ -1932,6 +1940,10 @@ Bool nxagentUnrealizeWindow(WindowPtr pWin)
void nxagentFrameBufferPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: running for window [0x%x]....\n", __func__, pWin->drawable.id);
+ #endif
+
if (pWin->backgroundState == BackgroundPixmap)
{
pWin->background.pixmap = nxagentVirtualPixmap(pWin->background.pixmap);
@@ -1972,6 +1984,10 @@ void nxagentFrameBufferPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
void nxagentPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion, int what)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: running for window [0x%x]....\n", __func__, pWin->drawable.id);
+ #endif
+
if (pWin -> realized)
{
BoxPtr pBox = RegionRects(pRegion);
@@ -2008,6 +2024,10 @@ void nxagentPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion, int what)
void nxagentPaintWindowBorder(WindowPtr pWin, RegionPtr pRegion, int what)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: running for window [0x%x]....\n", __func__, pWin->drawable.id);
+ #endif
+
/*
* The framebuffer operations don't take care of clipping to the
* actual area of the framebuffer so we need to clip ourselves.
@@ -2048,6 +2068,10 @@ void nxagentPaintWindowBorder(WindowPtr pWin, RegionPtr pRegion, int what)
*/
void nxagentCopyWindow(WindowPtr pWin, xPoint oldOrigin, RegionPtr oldRegion)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: running for window [0x%x]....\n", __func__, pWin->drawable.id);
+ #endif
+
fbCopyWindow(pWin, oldOrigin, oldRegion);
}
@@ -2092,6 +2116,10 @@ void nxagentClipNotify(WindowPtr pWin, int dx, int dy)
*/
void nxagentWindowExposures(WindowPtr pWin, RegionPtr pRgn, RegionPtr other_exposed)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: running for window [0x%x]....\n", __func__, pWin->drawable.id);
+ #endif
+
/*
* The problem: we want to synthetize the expose events internally, so
* that we reduce the time between a window operation and the corresp-