~compiz-team/compiz-workarounds-plugin/0.9.5

« back to all changes in this revision

Viewing changes to src/workarounds.cpp

  • Committer: Sam Spilsbury
  • Author(s): Andrea Azzarone
  • Date: 2011-07-30 16:20:42 UTC
  • mfrom: (111.1.2)
  • Revision ID: git-v1:36d6b677f19c92ca2fd1d48d330df076cfaa1c29
MergeĀ lp:~andyrock/compiz-workarounds-plugin/fix-memory-leak

Show diffs side-by-side

added added

removed removed

Lines of Context:
711
711
 
712
712
    newWmType = window->wmType ();
713
713
 
714
 
    if (!XGetClassHint (screen->dpy (), window->id (), &classHint) != Success)
 
714
    if (XGetClassHint (screen->dpy (), window->id (), &classHint) != Success)
715
715
        return newWmType;
716
716
 
717
717
    if (classHint.res_name)
719
719
        resName = CompString (classHint.res_name);
720
720
        XFree (classHint.res_name);
721
721
    }
 
722
    
 
723
    if (classHint.res_class)
 
724
    {
 
725
        XFree (classHint.res_class);
 
726
    }
722
727
 
723
728
    /* FIXME: Is this the best way to detect a notification type window? */
724
729
    if (ws->optionGetNotificationDaemonFix ())