summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/showdesktop.c2
-rw-r--r--applets/wncklet/wncklet.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index a9aebb10..59d537cf 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -361,7 +361,7 @@ static void show_desktop_applet_realized(MatePanelApplet* applet, gpointer data)
g_signal_handlers_disconnect_by_func(sdd->icon_theme, theme_changed_callback, sdd);
screen = gtk_widget_get_screen(sdd->applet);
- sdd->wnck_screen = wnck_screen_get(gdk_screen_get_number (screen));
+ sdd->wnck_screen = wnck_screen_get(gdk_x11_screen_get_screen_number (screen));
if (sdd->wnck_screen != NULL)
wncklet_connect_while_alive(sdd->wnck_screen, "showing_desktop_changed", G_CALLBACK(show_desktop_changed_callback), sdd, sdd->applet);
diff --git a/applets/wncklet/wncklet.c b/applets/wncklet/wncklet.c
index d9b9fd47..7ad3c0a1 100644
--- a/applets/wncklet/wncklet.c
+++ b/applets/wncklet/wncklet.c
@@ -30,6 +30,7 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
#define WNCK_I_KNOW_THIS_IS_UNSTABLE
#include <libwnck/libwnck.h>
@@ -99,7 +100,7 @@ WnckScreen* wncklet_get_screen(GtkWidget* applet)
if (!gtk_widget_has_screen(applet))
return wnck_screen_get_default();
- screen_num = gdk_screen_get_number(gtk_widget_get_screen(applet));
+ screen_num = gdk_x11_screen_get_screen_number(gtk_widget_get_screen(applet));
return wnck_screen_get(screen_num);
}