rendered paste bodydiff --git a/workarounds.c b/workarounds.c
index e599975..66eb385 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -148,15 +148,24 @@ workaroundsFixupFullscreen (CompWindow *w)
if (w->type & CompWindowTypeDesktopMask)
return;
+ printf("looking at window %d (%s)\n", w->id, w->resName);
/* get output region for window */
output = outputDeviceForWindow (w);
box = &w->screen->outputDev[output].region.extents;
+ printf ("on output %d: (%d, %d) - (%d, %d)\n", output,
+ box->x1, box->y1, box->x2, box->y2);
+
+ printf("window pos: %d %d, size %d %d, border %d\n",
+ w->serverX, w->serverY,
+ w->serverWidth, w->serverHeight,
+ w->serverBorderWidth);
/* does the size match the output rectangle? */
isFullSize = (w->serverX == box->x1) && (w->serverY == box->y1) &&
(w->serverWidth == (box->x2 - box->x1)) &&
(w->serverHeight == (box->y2 - box->y1));
+ printf("size matched output: %d\n", isFullSize);
/* if not, check if it matches the whole screen */
if (!isFullSize)
{
@@ -164,6 +173,7 @@ workaroundsFixupFullscreen (CompWindow *w)
(w->serverWidth == w->screen->width) &&
(w->serverHeight == w->screen->height))
{
+ printf("size matched screen\n");
isFullSize = TRUE;
}
}
@@ -173,6 +183,7 @@ workaroundsFixupFullscreen (CompWindow *w)
{
unsigned int state = w->state & ~CompWindowStateFullscreenMask;
+ printf("fullsize %d, state %x\n", isFullSize, w->state);
if (isFullSize)
state |= CompWindowStateFullscreenMask;