JWM Source Documentation
Functions | Variables
screen.c File Reference

Screen functions. More...

#include "jwm.h"
#include "screen.h"
#include "main.h"
#include "cursor.h"
#include "misc.h"

Go to the source code of this file.


void StartupScreens (void)
 Startup screens.
void ShutdownScreens (void)
 Shutdown screens.
const ScreenTypeGetCurrentScreen (int x, int y)
 Get the screen given global screen coordinates.
const ScreenTypeGetMouseScreen (void)
 Get the screen the mouse is currently on.
const ScreenTypeGetScreen (int index)
 Get data for a screen.
int GetScreenCount (void)
 Get the number of screens.


static ScreenTypescreens = NULL
static int screenCount

Detailed Description

Screen functions.

Joe Wingbermuehle

Note that screen here refers to physical monitors. Screens are determined using the xinerama extension (if available). There will always be at least one screen.

Definition in file screen.c.

Function Documentation

const ScreenType* GetCurrentScreen ( int  x,
int  y 
const ScreenType* GetMouseScreen ( void  )

Get the screen the mouse is currently on.

Get the screen containing the mouse.

Definition at line 105 of file screen.c.

References GetCurrentScreen(), GetMousePosition(), Menu::x, and Menu::y.

Referenced by CascadeClient(), ComputeDimensions(), and PlaceClient().

const ScreenType* GetScreen ( int  index)

Get data for a screen.

Get the screen of the specified index.

Definition at line 123 of file screen.c.

References Assert, and screenCount.

Referenced by DoSnapScreen().

int GetScreenCount ( void  )

Get the number of screens.

Definition at line 134 of file screen.c.

References screenCount.

Referenced by DoSnapScreen(), and StartupPlacement().

void ShutdownScreens ( void  )

Shutdown screens.

Definition at line 72 of file screen.c.

References Release.

Referenced by Shutdown().

void StartupScreens ( void  )

Variable Documentation

int screenCount

Definition at line 21 of file screen.c.

Referenced by DoSnapScreen(), GetCurrentScreen(), GetScreen(), GetScreenCount(), and StartupScreens().

ScreenType* screens = NULL

Definition at line 20 of file screen.c.

joewing.net / Projects / JWM