By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 869
Collapse All | Expand All

(-)kwin.cpp (+38 lines)
Lines 1234-1239 Link Here
1234
#endif
1234
#endif
1235
}
1235
}
1236
1236
1237
1237
TQString KWin::readNameProperty( WId win, unsigned long atom )
1238
TQString KWin::readNameProperty( WId win, unsigned long atom )
1238
{
1239
{
1239
#ifdef Q_WS_X11
1240
#ifdef Q_WS_X11
Lines 1264-1267 Link Here
1264
    return result;
1265
    return result;
1265
}
1266
}
1266
1267
1268
/* basically this was inproperly implemented since some text properties contain
1269
 * multiple text strings. In order to do it properly we now just have the 
1270
 * original function call the proper implementation. This function allows you 
1271
 * to acces any of the text properties. 
1272
 *
1273
*/
1274
1275
TQString KWin::readNamePropertyByInt( WId win, unsigned long atom, int num )
1276
{
1277
#ifdef Q_WS_X11
1278
    XTextProperty tp;
1279
    char **text = NULL;
1280
    int count;
1281
#endif
1282
    TQString result;
1283
#ifdef Q_WS_X11
1284
    if ( XGetTextProperty( qt_xdisplay(), win, &tp, atom ) != 0 && tp.value != NULL ) 
1285
    {
1286
        if (!kwin_UTF8_STRING)
1287
          kwin_UTF8_STRING = XInternAtom( qt_xdisplay(), "UTF8_STRING", False);
1288
1289
        if ( tp.encoding == kwin_UTF8_STRING ) {
1290
            result = TQString::fromUtf8 ( (const char*) tp.value );
1291
        }
1292
        else if ( XmbTextPropertyToTextList( qt_xdisplay(), &tp, &text, &count) == Success &&
1293
                  text != NULL && count > 0 ) {
1294
            result = TQString::fromLocal8Bit( text[num] );
1295
        } else if ( tp.encoding == XA_STRING )
1296
            result = TQString::fromLocal8Bit( (const char*) tp.value );
1297
        if( text != NULL )
1298
            XFreeStringList( text );
1299
        XFree( tp.value );
1300
    }
1301
#endif
1302
    return result;
1303
}
1304
1267
//#endif
1305
//#endif
(-)kwin.h (-1 / +2 lines)
Lines 456-462 Link Here
456
     * @since 3.2
456
     * @since 3.2
457
     */
457
     */
458
    static TQString readNameProperty( WId window, unsigned long atom );
458
    static TQString readNameProperty( WId window, unsigned long atom );
459
459
    
460
    static TQString readNamePropertyByInt( WId window, unsigned long atom, int num );
460
    /**
461
    /**
461
     * Returns true if a compositing manager is running (i.e. ARGB windows
462
     * Returns true if a compositing manager is running (i.e. ARGB windows
462
     * are supported, effects will be provided, etc.).
463
     * are supported, effects will be provided, etc.).

Return to bug 869