summaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-06-08 11:46:35 +0200
committerStefano Karapetsas <[email protected]>2012-06-08 11:46:35 +0200
commit6f9d49a3a1a6981f0cc09ae30d63505585e60c76 (patch)
tree6159d1c454f6a56c3f794705202a533c5db3e8a5 /src/daemon/daemon.c
parent3695f8d4564daf9a2149e9fb956b55f265a4257b (diff)
downloadmate-notification-daemon-6f9d49a3a1a6981f0cc09ae30d63505585e60c76.tar.bz2
mate-notification-daemon-6f9d49a3a1a6981f0cc09ae30d63505585e60c76.tar.xz
port to libmatewnck
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index f8ab49d..a0ec94e 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -42,8 +42,7 @@
#include <X11/Xatom.h>
#include <gdk/gdkx.h>
-#define WNCK_I_KNOW_THIS_IS_UNSTABLE
-#include <libwnck/libwnck.h>
+#include <libmatewnck/libmatewnck.h>
#include "daemon.h"
#include "engines.h"
@@ -1160,36 +1159,36 @@ static gboolean screensaver_active(GtkWidget* nw)
static gboolean fullscreen_window_exists(GtkWidget* nw)
{
- WnckScreen* wnck_screen;
- WnckWorkspace* wnck_workspace;
+ MatewnckScreen* matewnck_screen;
+ MatewnckWorkspace* matewnck_workspace;
GList* l;
#if (GDK_PIXBUF_MAJOR == 2) && (GDK_PIXBUF_MINOR < 22)
- wnck_screen = wnck_screen_get(GDK_SCREEN_XNUMBER(gdk_window_get_screen(gtk_widget_get_window(nw))));
+ matewnck_screen = matewnck_screen_get(GDK_SCREEN_XNUMBER(gdk_window_get_screen(gtk_widget_get_window(nw))));
#else
- wnck_screen = wnck_screen_get(GDK_SCREEN_XNUMBER(gdk_drawable_get_screen(GDK_DRAWABLE(GTK_WIDGET(nw)->window))));
+ matewnck_screen = matewnck_screen_get(GDK_SCREEN_XNUMBER(gdk_drawable_get_screen(GDK_DRAWABLE(GTK_WIDGET(nw)->window))));
#endif
- wnck_screen_force_update (wnck_screen);
+ matewnck_screen_force_update (matewnck_screen);
- wnck_workspace = wnck_screen_get_active_workspace (wnck_screen);
+ matewnck_workspace = matewnck_screen_get_active_workspace (matewnck_screen);
- for (l = wnck_screen_get_windows_stacked (wnck_screen); l != NULL; l = l->next)
+ for (l = matewnck_screen_get_windows_stacked (matewnck_screen); l != NULL; l = l->next)
{
- WnckWindow *wnck_win = (WnckWindow *) l->data;
+ MatewnckWindow *matewnck_win = (MatewnckWindow *) l->data;
- if (wnck_window_is_on_workspace (wnck_win, wnck_workspace) && wnck_window_is_fullscreen (wnck_win) && wnck_window_is_active (wnck_win))
+ if (matewnck_window_is_on_workspace (matewnck_win, matewnck_workspace) && matewnck_window_is_fullscreen (matewnck_win) && matewnck_window_is_active (matewnck_win))
{
/*
* Sanity check if the window is _really_ fullscreen to
- * work around a bug in libwnck that doesn't get all
+ * work around a bug in libmatewnck that doesn't get all
* unfullscreen events.
*/
- int sw = wnck_screen_get_width (wnck_screen);
- int sh = wnck_screen_get_height (wnck_screen);
+ int sw = matewnck_screen_get_width (matewnck_screen);
+ int sh = matewnck_screen_get_height (matewnck_screen);
int x, y, w, h;
- wnck_window_get_geometry (wnck_win, &x, &y, &w, &h);
+ matewnck_window_get_geometry (matewnck_win, &x, &y, &w, &h);
if (sw == w && sh == h)
{