-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesktop.h
52 lines (41 loc) · 1.9 KB
/
desktop.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* $Id: desktop.h,v 3.0 90/11/20 16:13:13 dme Exp Locker: dme $
*
* Copyright (c) 1990 Dave Edmondson.
* Copyright (c) 1990 Imperial College of Science, Technoology & Medicine
* All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the names of Dave Edmondson or Imperial College
* not be used in advertising or publicity pertaining to distribution of the
* software without specific, written prior permission. Dave Edmondson and
* Imperial College make no representations about the suitability of this
* software for any purpose. It is provided "as is" without express or
* implied warranty.
*/
extern Window moving_window; /* indicates that we are doing a move in the vd display */
/* convert real space to virtual space */
#define R_TO_V_X(x) ((x) + Scr->VirtualDesktopX)
#define R_TO_V_Y(y) ((y) + Scr->VirtualDesktopY)
/* convert virtual space to real space */
#define V_TO_R_X(x) ((x) - Scr->VirtualDesktopX)
#define V_TO_R_Y(y) ((y) - Scr->VirtualDesktopY)
/* scale up and down from desktop display to real sizes */
/* don't pass me something like `x++' - please */
#define SCALE_D(x) ((((x)/Scr->VirtualDesktopDScale) < 1) ? 1 : (x)/Scr->VirtualDesktopDScale)
#define SCALE_U(x) ((x)*Scr->VirtualDesktopDScale)
/* how wide/high the autopan windows are */
#define AP_SIZE (Scr->AutoPanBorderWidth) /* DSE */
#define VTWM_DESKTOP_CLASS "VTWM Desktop"
/*
Local Variables:
mode:c
c-file-style:"GNU"
c-file-offsets:((substatement-open 0)(brace-list-open 0)(c-hanging-comment-ender-p . nil)(c-hanging-comment-beginner-p . nil)(comment-start . "// ")(comment-end . "")(comment-column . 48))
End:
*/
/* vim: sw=2
*/