summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/darwin/bundle/quartzShared.h
blob: 9a69295ce8bb56d04fa65acde026f8feaf3c5e7c (plain)
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
/*
 * Shared definitions between the Darwin X Server
 * and the Cocoa front end. 
 */
/* $XFree86: xc/programs/Xserver/hw/darwin/bundle/quartzShared.h,v 1.3 2001/04/05 06:08:46 torrey Exp $ */

#ifndef _QUARTZSHARED_H
#define _QUARTZSHARED_H

// Data stored at startup for Cocoa front end
extern int                  quartzEventWriteFD;
extern int                  quartzStartClients;

// User preferences used by X server
extern int                  quartzUseSysBeep;
extern int                  darwinFakeButtons;

void QuartzReadPreferences(void);

// NX_APPDEFINED event subtypes for special commands to the X server
// update modifiers: update all modifier keys
// show: vt switch to X server; recapture screen and restore X drawing
// hide: vt switch away from X server; release screen and clip X drawing
// quit: kill the X server and release the display
// read pasteboard: copy Mac OS X pasteboard into X cut buffer
// write pasteboard: copy X cut buffer onto Mac OS X pasteboard

enum {
  kXDarwinUpdateModifiers,
  kXDarwinShow,
  kXDarwinHide,
  kXDarwinQuit, 
  kXDarwinReadPasteboard,
  kXDarwinWritePasteboard
};

#endif	/* _QUARTZSHARED_H */