Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 133301 | Differences between
and this patch

Collapse All | Expand All

(-)qt-3.3.6-r1/work/qt-x11-free-3.3.6/src/kernel/qwidget_x11.cpp.orig (+12 lines)
Lines 292-297 Link Here
292
292
293
void QWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
293
void QWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
294
{
294
{
295
    unsigned long buf[(sizeof(XWindowAttributes) + sizeof(long) - 1)/ sizeof(long)];
296
    memset(&buf, 0xAB, sizeof(buf));
295
    if ( testWState(WState_Created) && window == 0 )
297
    if ( testWState(WState_Created) && window == 0 )
296
	return;
298
	return;
297
299
Lines 375-381 Link Here
375
	id = window;
377
	id = window;
376
	setWinId( window );
378
	setWinId( window );
377
	XWindowAttributes a;
379
	XWindowAttributes a;
380
	fprintf(stderr, "size = %d/%d, diff = %d\n", sizeof(buf), sizeof(a), ((char*)buf - (char*)&a));
381
	for (unsigned i = 0; i < sizeof(buf)/sizeof(*buf); i++) {
382
	    fprintf(stderr, "%x ", buf[i]);
383
	}
384
	fprintf(stderr, "\n---- BEFORE ----\n");
378
	XGetWindowAttributes( dpy, window, &a );
385
	XGetWindowAttributes( dpy, window, &a );
386
	fprintf(stderr, "---- AFTER ----\n");
387
	for (unsigned i = 0; i < sizeof(buf)/sizeof(*buf); i++) {
388
	    fprintf(stderr, "%x ", buf[i]);
389
	}
390
	fprintf(stderr, "\n");
379
	crect.setRect( a.x, a.y, a.width, a.height );
391
	crect.setRect( a.x, a.y, a.width, a.height );
380
392
381
	if ( a.map_state == IsUnmapped )
393
	if ( a.map_state == IsUnmapped )

Return to bug 133301