> I confirm this previous statement: it fails because the window name is
> translated. But that's not the only reason, a pointer to a QString is created
> and is then passed to QString::compare which should fail:
>
> 54 + QString *windowName = new QString(wnck_window_get_name(wnckWindow));
> 55 +
> 56 + int found = QString::compare("Trash", windowName,
> Qt::CaseSensitive);
>
>
> The following should work better:
>
> QString windowName = QString(wnck_window_get_name(wnckWindow);
> I confirm this previous statement: it fails because the window name is wnck_window_ get_name( wnckWindow) ); :compare( "Trash" , windowName, wnck_window_ get_name( wnckWindow) ;
> translated. But that's not the only reason, a pointer to a QString is created
> and is then passed to QString::compare which should fail:
>
> 54 + QString *windowName = new QString(
> 55 +
> 56 + int found = QString:
> Qt::CaseSensitive);
>
>
> The following should work better:
>
> QString windowName = QString(
Try this version it should work fine.