Changeset View
Changeset View
Standalone View
Standalone View
effects/fadingpopups/package/contents/code/main.js
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | 20 | | |||
21 | "use strict"; | 21 | "use strict"; | ||
22 | 22 | | |||
23 | var blacklist = [ | ||||
davidedmundson: we could do with standardising this list in EffectWindow somewhere | |||||
24 | // The logout screen has to be animated only by the logout effect. | ||||
25 | "ksmserver ksmserver", | ||||
26 | "ksmserver-logout-greeter ksmserver-logout-greeter", | ||||
27 | | ||||
28 | // KDE Plasma splash screen has to be animated only by the login effect. | ||||
29 | "ksplashqml ksplashqml", | ||||
30 | "ksplashsimple ksplashsimple", | ||||
31 | "ksplashx ksplashx" | ||||
32 | ]; | ||||
33 | | ||||
23 | function isPopupWindow(window) { | 34 | function isPopupWindow(window) { | ||
35 | // If the window is blacklisted, don't animate it. | ||||
36 | if (blacklist.indexOf(window.windowClass) != -1) { | ||||
37 | return false; | ||||
38 | } | ||||
39 | | ||||
24 | // Animate combo box popups, tooltips, popup menus, etc. | 40 | // Animate combo box popups, tooltips, popup menus, etc. | ||
25 | if (window.popupWindow) { | 41 | if (window.popupWindow) { | ||
26 | return true; | 42 | return true; | ||
27 | } | 43 | } | ||
28 | 44 | | |||
29 | // Override-redirect windows are usually used for user interface | 45 | // Override-redirect windows are usually used for user interface | ||
30 | // concepts that are expected to be animated by this effect, e.g. | 46 | // concepts that are expected to be animated by this effect, e.g. | ||
31 | // popups that contain window thumbnails on X11, etc. | 47 | // popups that contain window thumbnails on X11, etc. | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |
we could do with standardising this list in EffectWindow somewhere