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