File: screeninfo.h

package info (click to toggle)
superkb 0.23-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 492 kB
  • sloc: ansic: 3,915; sh: 187; makefile: 182
file content (27 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * screeninfo.h
 *
 * Copyright (C) 2008, Octavio Alvarez Piza.
 * License: GNU General Public License v2.
 *
 * This code provides Superkb with a way to get information about the one
 * or many monitors available on the system, in order to draw one keyboard
 * per monitor instead of one big keyboard among all monitors.
 *
 * It does so by providing a function.
 */

#ifndef __SCREENINFO_H
#define __SCREENINFO_H

typedef struct {
   int   screen_number;
   short x_org;
   short y_org;
   short width;
   short height;
} screeninfo_t;

void screeninfo_get_screens(Display *dpy, screeninfo_t **xinerama_screens, int *screens_n);

#endif