Session-manager: Work around for clients with stupidly large icons.

This commit is contained in:
Jonathan Moore Liles 2020-12-16 20:01:18 -08:00
parent 0106604073
commit 7565be85fb
1 changed files with 4 additions and 1 deletions

View File

@ -138,6 +138,9 @@ class NSM_Client : public Fl_Group
if ( img )
{
if ( img->w() > 32 || img->h() > 32 )
WARNING("Client %s has stupidly large icon (%ix%i), ignoring.", _client_name, img->w(), img->h() );
else
icon_box->image( img );
}
}