/******************************************************************************* **3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 ** 10 20 30 40 50 60 70 80 ** ** notify-osd ** ** util.h - all sorts of helper functions ** ** Copyright 2009 Canonical Ltd. ** ** Authors: ** Cody Russell ** Mirco "MacSlow" Mueller ** ** This program is free software: you can redistribute it and/or modify it ** under the terms of the GNU General Public License version 3, as published ** by the Free Software Foundation. ** ** This program is distributed in the hope that it will be useful, but ** WITHOUT ANY WARRANTY; without even the implied warranties of ** MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR ** PURPOSE. See the GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License along ** with this program. If not, see . ** *******************************************************************************/ #include #include #include #include #define WM_NAME_COMPIZ "compiz" #define WM_NAME_METACITY "Metacity" #define WM_NAME_XFCE "Xfwm4" #define WM_NAME_KWIN "KWin" #define WM_NAME_XMONAD "xmonad" gchar* filter_text (const gchar* app_name); cairo_surface_t* copy_surface (cairo_surface_t* orig); gboolean destroy_cloned_surface (cairo_surface_t* surface); gchar* get_wm_name (Display* dpy);