|
Dunst
Lightweight notification daemon
|
#include <assert.h>#include <glib.h>#include <locale.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <X11/extensions/randr.h>#include <X11/extensions/Xinerama.h>#include <X11/extensions/Xrandr.h>#include <X11/Xatom.h>#include <X11/X.h>#include <X11/Xlib.h>#include <X11/Xresource.h>#include "../log.h"#include "../settings.h"#include "../utils.h"#include "x.h"#include "screen.h"
Include dependency graph for screen.c:Go to the source code of this file.
Functions | |
| void | randr_init (void) |
| void | randr_update (void) |
| void | xinerama_update (void) |
| void | screen_update_fallback (void) |
| static void | x_follow_setup_error_handler (void) |
| static int | x_follow_tear_down_error_handler (void) |
| static int | FollowXErrorHandler (Display *display, XErrorEvent *e) |
| static Window | get_focused_window (void) |
| void | screen_dpi_xft_cache_purge (void) |
| static double | screen_dpi_get_from_xft (void) |
| static double | screen_dpi_get_from_monitor (const struct screen_info *scr) |
| double | screen_dpi_get (const struct screen_info *scr) |
| void | init_screens (void) |
| void | free_screen_ar (struct screen_info *scr, int len) |
| void | alloc_screen_ar (int n) |
| bool | screen_check_event (XEvent *ev) |
| bool | have_fullscreen_window (void) |
| Find the currently focused window and check if it's in fullscreen mode. | |
| static int | XErrorHandlerFullscreen (Display *display, XErrorEvent *e) |
| X11 ErrorHandler to mainly discard BadWindow parameter error. | |
| bool | window_is_fullscreen (Window window) |
| Check if window is in fullscreen mode. | |
| static int | get_screen_by_name (const char *name, int defval) |
| const struct screen_info * | get_active_screen (void) |
Variables | |
| struct screen_info * | screens |
| int | screens_len |
| bool | dunst_follow_errored = false |
| static int | randr_major_version = 0 |
| static int | randr_minor_version = 0 |
| double | screen_dpi_xft_cache = -DBL_MAX |
| A cache variable to cache the Xft.dpi xrdb values. | |
Definition in file screen.c.
|
static |
| void free_screen_ar | ( | struct screen_info * | scr, |
| int | len ) |
| const struct screen_info * get_active_screen | ( | void | ) |
|
static |
| bool have_fullscreen_window | ( | void | ) |
Find the currently focused window and check if it's in fullscreen mode.
| true | if the focused window is in fullscreen mode |
| false | otherwise |
| double screen_dpi_get | ( | const struct screen_info * | scr | ) |
|
static |
| bool window_is_fullscreen | ( | Window | window | ) |
|
static |
|
static |
| double screen_dpi_xft_cache = -DBL_MAX |
| struct screen_info* screens |