[fusion-commits] Animation plugin: Changes to 'master' (f05e878bbd4d5b26dde1448c7074538331847dda)
cornelius at server.beryl-project.org
cornelius at server.beryl-project.org
Thu Jul 12 07:36:43 CEST 2007
New commits:
commit f05e878bbd4d5b26dde1448c7074538331847dda
Author: Erkin Bahceci <erkinbah at gmail.com>
Date: Thu Jul 12 01:35:31 2007 -0400
Replace simple matchEvals with strcmp.
animation.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Modified: fusion/plugins/animation/animation.c
===================================================================
--- fusion/plugins/animation/animation.c
+++ fusion/plugins/animation/animation.c
@@ -1293,7 +1293,7 @@ getActualWinType(CompWindow *w)
// Match Mozilla (Firefox, Thunderbird, etc.) menus
// and Java menus
- if (matchWithString (w, "(type=Normal & override_redirect=1) | \
+ if (matchWithString (w, "(type=Normal & override_redirect=1) | \
name=sun-awt-X11-XMenuWindow | name=sun-awt-X11-XWindowPeer"))
return CompWindowTypeDropdownMenuMask;
@@ -1303,11 +1303,13 @@ getActualWinType(CompWindow *w)
return CompWindowTypeTooltipMask;
// Match Java normal windows
- if (matchWithString(w, "name=sun-awt-X11-XFramePeer"))
+ if (w->resName &&
+ strcmp(w->resName, "sun-awt-X11-XFramePeer") == 0)
return CompWindowTypeNormalMask;
// Match Java dialog windows
- if (matchWithString(w, "name=sun-awt-X11-XDialogPeer"))
+ if (w->resName &&
+ strcmp(w->resName, "sun-awt-X11-XDialogPeer") == 0)
return CompWindowTypeDialogMask;
return w->wmType;
More information about the commits
mailing list