~ubuntu-branches/ubuntu/natty/kde4libs/natty-proposed

« back to all changes in this revision

Viewing changes to plasma/windoweffects.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell, Scott Kitterman, Jonathan Riddell
  • Date: 2010-11-22 17:59:02 UTC
  • mfrom: (1.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101122175902-yubxubd0pg6hn11z
Tags: 4:4.5.80a-0ubuntu1
[ Scott Kitterman ]
* New upstream beta release
  - Refreshed all patches
  - Updated debian/patches/10_make_libkdeinit4_private.diff to use Qfile
    instead of Qstring in kdecore/kernel/kstandarddirs_unix.cpp
  - Updated debian/patches/kubuntu_01_kubuntu_useragent.diff to provide
    Kubuntu in the Konqueror user agen string with the changes in
    kio/kio/kprotocolmanager.cpp
  - Partially updated debian/patches/kubuntu_05_langpack_desktop_files.diff
    and left the balance in kdecore/localization/klocale.cpp.rej for later
    revision
  - Update debian/patches/kubuntu_06_user_disk_mounting.diff for changes in
    solid/solid/backends/hal/halstorageaccess.cpp
  - Remove debian/patches/kubuntu_71_backport_plasma_webview_changes.diff
    (backported from upstream, so already present now)
  - Add minimum version for libattica-dev of 0.1.90 to build-depends
  - Bump minimum version for libsoprano-dev build-depend to 2.5.60
  - Add minimum version for shared-desktop-ontologies of 0.5 in build-dep

[ Jonathan Riddell ]
* Add build-depends on grantlee, libudev-dev, hupnp (FIXME needs packaging fixes)
* Update kubuntu_04_add_langpack_path.diff 28_find_old_kde4_html_documentation.diff
  22_hack_in_etc_kde4_in_kstandarddirs.diff for QT_NO_CAST_FROM_ASCII
* Update kubuntu_05_langpack_desktop_files.diff for new upstream code
* Add kubuntu_78_solid_trunk.diff to fix solid linking
* Add libnepomukutils4 package for new library
* Don't install kcm_ssl for now, e-mailed upstream to suggest moving to kdebase
* Add kubuntu_79_knewstuff_fix.diff to fix compile broken by non-trunk commit
  http://websvn.kde.org/?view=revision&revision=1199825
* kdelibs5-data replaces old kdebase-runtime-data due to moved file
* Add kubuntu_80_find_hupnp.diff to find hupnp include files, committed upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
#include "windoweffects.h"
21
 
 
22
21
#include <QVarLengthArray>
23
22
 
24
23
#include <kwindowsystem.h>
26
25
#include "theme.h"
27
26
 
28
27
#ifdef Q_WS_X11
29
 
#include <X11/Xlib.h>
30
 
#include <X11/Xatom.h>
31
 
#include <QX11Info>
 
28
    #include <X11/Xlib.h>
 
29
    #include <X11/Xatom.h>
 
30
    #include <X11/Xutil.h>
 
31
    #include <QX11Info>
 
32
 
 
33
    #define DASHBOARD_WIN_NAME "dashboard"
 
34
    #define DASHBOARD_WIN_CLASS "dashboard"
32
35
#endif
33
36
 
34
37
namespace Plasma
68
71
    case BlurBehind:
69
72
        effectName = "_KDE_NET_WM_BLUR_BEHIND_REGION";
70
73
        break;
 
74
    case Dashboard:
 
75
        // TODO: Better namespacing for atoms
 
76
        effectName = "_WM_EFFECT_KDE_DASHBOARD";
 
77
        break;
71
78
    default:
72
79
        return false;
73
80
    }
324
331
#endif
325
332
}
326
333
 
 
334
void markAsDashboard(WId window)
 
335
{
 
336
#ifdef Q_WS_X11
 
337
    XClassHint classHint;
 
338
    classHint.res_name = DASHBOARD_WIN_NAME;
 
339
    classHint.res_class = DASHBOARD_WIN_CLASS;
 
340
    XSetClassHint(QX11Info::display(), window, &classHint);
 
341
#endif
 
342
}
 
343
 
327
344
}
328
345
 
329
346
}