Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
screen.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
10
11#ifndef DUNST_SCREEN_H
12#define DUNST_SCREEN_H
13
14#include <stdbool.h>
15#include <X11/Xlib.h>
16
17#define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh))
18
19void init_screens(void);
20void screen_dpi_xft_cache_purge(void);
21bool screen_check_event(XEvent *ev);
22
23const struct screen_info *get_active_screen(void);
24double screen_dpi_get(const struct screen_info *scr);
25
36bool have_fullscreen_window(void);
37
45bool window_is_fullscreen(Window window);
46
47#endif
bool have_fullscreen_window(void)
Find the currently focused window and check if it's in fullscreen mode.
Definition screen.c:238
bool window_is_fullscreen(Window window)
Check if window is in fullscreen mode.
Definition screen.c:262