Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
screen.h File Reference

Xorg screen managment. More...

#include <stdbool.h>
#include <X11/Xlib.h>
+ Include dependency graph for screen.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INRECT(x, y, rx, ry, rw, rh)
 

Functions

void init_screens (void)
 
void screen_dpi_xft_cache_purge (void)
 
bool screen_check_event (XEvent *ev)
 
const struct screen_infoget_active_screen (void)
 
double screen_dpi_get (const struct screen_info *scr)
 
bool have_fullscreen_window (void)
 Find the currently focused window and check if it's in fullscreen mode.
 
bool window_is_fullscreen (Window window)
 Check if window is in fullscreen mode.
 

Detailed Description

Xorg screen managment.

License
BSD-3-Clause

Definition in file screen.h.

Macro Definition Documentation

◆ INRECT

#define INRECT ( x,
y,
rx,
ry,
rw,
rh )
Value:
((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh))

Definition at line 17 of file screen.h.

Function Documentation

◆ get_active_screen()

const struct screen_info * get_active_screen ( void )

Definition at line 338 of file screen.c.

◆ have_fullscreen_window()

bool have_fullscreen_window ( void )

Find the currently focused window and check if it's in fullscreen mode.

See also
window_is_fullscreen()
get_focused_window()
Return values
trueif the focused window is in fullscreen mode
falseotherwise

Definition at line 238 of file screen.c.

◆ init_screens()

void init_screens ( void )

Definition at line 103 of file screen.c.

◆ screen_check_event()

bool screen_check_event ( XEvent * ev)

Definition at line 185 of file screen.c.

◆ screen_dpi_get()

double screen_dpi_get ( const struct screen_info * scr)

Definition at line 84 of file screen.c.

◆ screen_dpi_xft_cache_purge()

void screen_dpi_xft_cache_purge ( void )

Definition at line 59 of file screen.c.

◆ window_is_fullscreen()

bool window_is_fullscreen ( Window window)

Check if window is in fullscreen mode.

Parameters
windowthe x11 window object
Return values
trueif window is in fullscreen mode
falseotherwise

Definition at line 262 of file screen.c.