Browse Source

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

tags/non-daw-v1.3.0
Jonathan Moore Liles 3 years ago
parent
commit
7565be85fb
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      session-manager/src/session-manager.C

+ 4
- 1
session-manager/src/session-manager.C View File

@@ -138,7 +138,10 @@ class NSM_Client : public Fl_Group
if ( img )
{
icon_box->image( 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 );
}
}



Loading…
Cancel
Save