diff --git a/src/display.c b/src/display.c index 3b177e439baf9f483f86f736343d2870546c28b8..54dba54eed31bb3fc5ce894c51bd7e9bce0f7782 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 c700d29d9ed2acf94aaa297258489a311e340032..fc8513de90265a91b67cc3aa0914d1c413cd9864 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 *);