summaryrefslogtreecommitdiff
path: root/typing-break/drw-monitor.c
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-01-09 22:14:20 -0500
committerSteve Zesch <[email protected]>2012-01-09 22:14:20 -0500
commite554754f5681592f0f7b1d41e0943a89470f3796 (patch)
tree223db9350604b352a18d6b6f6ed330600afafeef /typing-break/drw-monitor.c
parent035a4e3cfa5782aaa4967cf923a1364eba3b056b (diff)
parentb9c28ef703e934e8dc137686984f04c7b0d2d010 (diff)
downloadmate-control-center-e554754f5681592f0f7b1d41e0943a89470f3796.tar.bz2
mate-control-center-e554754f5681592f0f7b1d41e0943a89470f3796.tar.xz
Merge branch 'master' of https://github.com/mate-desktop/mate-control-center
Diffstat (limited to 'typing-break/drw-monitor.c')
-rw-r--r--typing-break/drw-monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/typing-break/drw-monitor.c b/typing-break/drw-monitor.c
index 5f0270c0..c4dd348a 100644
--- a/typing-break/drw-monitor.c
+++ b/typing-break/drw-monitor.c
@@ -146,7 +146,7 @@ drw_monitor_timeout (DrwMonitor *monitor)
priv = monitor->priv;
- if (XScreenSaverQueryInfo (GDK_DISPLAY (), DefaultRootWindow (GDK_DISPLAY ()), priv->ss_info) != 0) {
+ if (XScreenSaverQueryInfo (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), DefaultRootWindow (GDK_DISPLAY_XDISPLAY(gdk_display_get_default())), priv->ss_info) != 0) {
if (priv->ss_info->idle < priv->last_idle) {
now = time (NULL);
@@ -172,7 +172,7 @@ drw_monitor_setup (DrwMonitor *monitor)
priv = monitor->priv;
- if (!XScreenSaverQueryExtension (GDK_DISPLAY (), &event_base, &error_base)) {
+ if (!XScreenSaverQueryExtension (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), &event_base, &error_base)) {
return FALSE;
}