From 681792821755556afdf63b277d2d86e7ae6dca5c Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Mon, 3 Oct 2005 19:48:17 +0000 Subject: [PATCH] The code is there, add prototype (Old svn revision: 17977) --- src/display.c | 33 +++++++++++++++++---------------- src/display.h | 1 + 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/display.c b/src/display.c index 3b177e439..54dba54ee 100644 --- a/src/display.c +++ b/src/display.c @@ -557,6 +557,23 @@ myDisplayGetScreenFromSystray (DisplayInfo *display, Window w) return NULL; } +ScreenInfo * +myDisplayGetDefaultScreen (DisplayInfo *display) +{ + GSList *index; + ScreenInfo *screen = NULL; + + g_return_val_if_fail (display != NULL, NULL); + + index = display->screens; + if (index) + { + screen = (ScreenInfo *) index->data; + } + + return screen; +} + Time myDisplayUpdateCurentTime (DisplayInfo *display, XEvent *ev) { @@ -597,22 +614,6 @@ myDisplayUpdateCurentTime (DisplayInfo *display, XEvent *ev) return display->current_time; } -ScreenInfo * -myDisplayGetDefaultScreen (DisplayInfo *display) -{ - GSList *index; - ScreenInfo *screen = NULL; - - g_return_val_if_fail (display != NULL, NULL); - - index = display->screens; - if (index) - { - screen = (ScreenInfo *) index->data; - } - return screen; -} - Time myDisplayGetCurrentTime (DisplayInfo *display) { diff --git a/src/display.h b/src/display.h index c700d29d9..fc8513de9 100644 --- a/src/display.h +++ b/src/display.h @@ -255,6 +255,7 @@ ScreenInfo * myDisplayGetScreenFromWindow (DisplayInfo *, Window w); ScreenInfo * myDisplayGetScreenFromSystray (DisplayInfo *, Window); +ScreenInfo * myDisplayGetDefaultScreen (DisplayInfo *); Time myDisplayUpdateCurentTime (DisplayInfo *, XEvent *); Time myDisplayGetCurrentTime (DisplayInfo *); -- GitLab