summaryrefslogtreecommitdiffstats
path: root/krandr/lowlevel_randr.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-20 20:43:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-20 20:43:38 +0000
commit42dfcbcc0fe6019d32cd5680a86e2831fe9b6974 (patch)
tree81f15764d81efcdcb0ec9edeeaf534ce2ecc0d48 /krandr/lowlevel_randr.c
parente7c20618e624eb27aa17abcdc471f3711e94b914 (diff)
downloadtdelibs-42dfcbcc0fe6019d32cd5680a86e2831fe9b6974.tar.gz
tdelibs-42dfcbcc0fe6019d32cd5680a86e2831fe9b6974.zip
KRandRTray fixes; minor compilation repairs
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1152360 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krandr/lowlevel_randr.c')
-rw-r--r--krandr/lowlevel_randr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/krandr/lowlevel_randr.c b/krandr/lowlevel_randr.c
index 5326f0334..251d3bef5 100644
--- a/krandr/lowlevel_randr.c
+++ b/krandr/lowlevel_randr.c
@@ -384,6 +384,10 @@ struct ScreenInfo* internal_read_screen_info (Display *display)
sr = XRRGetScreenResources (display, root_window);
+ if (sr == NULL) {
+ return NULL;
+ }
+
screen_info = malloc (sizeof (struct ScreenInfo));
screen_info->dpy = display;
screen_info->window = root_window;