~psybers/docky/bug558780

« back to all changes in this revision

Viewing changes to Docky.Windowing/Windowing/WindowMatcher.cs

  • Committer: Robert Dyer
  • Date: 2010-04-08 22:04:04 UTC
  • Revision ID: psybers@gmail.com-20100408220404-l80ril3p1z7yysv1
better matching for OO.org window titles

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
                        if (window.ClassGroup != null) {
374
374
                                if (WindowIsOpenOffice (window)) {
375
375
                                        string title = window.Name;
376
 
                                        if (title.Contains ("Writer")) {
 
376
                                        if (title.EndsWith ("Writer")) {
377
377
                                                command_line.Add ("ooffice-writer");
378
 
                                        } else if (title.Contains ("Draw")) {
 
378
                                        } else if (title.EndsWith ("Draw")) {
379
379
                                                command_line.Add ("ooffice-draw");
380
 
                                        } else if (title.Contains ("Impress")) {
 
380
                                        } else if (title.EndsWith ("Impress")) {
381
381
                                                command_line.Add ("ooffice-impress");
382
 
                                        } else if (title.Contains ("Calc")) {
 
382
                                        } else if (title.EndsWith ("Calc")) {
383
383
                                                command_line.Add ("ooffice-calc");
384
 
                                        } else if (title.Contains ("Math")) {
 
384
                                        } else if (title.EndsWith ("Math")) {
385
385
                                                command_line.Add ("ooffice-math");
386
386
                                        }
387
387
                                } else if (window.ClassGroup.ResClass == "Wine") {