annotate libvo/x11_common.c @ 369:b1a706452eeb

pass keys a-z && A-Z
author arpi_esp
date Thu, 12 Apr 2001 00:05:41 +0000
parents f6b5c2dbc88e
children b0e4e5744899
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
1 #include <stdio.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
2 #include <stdlib.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
3 #include <string.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
4
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
5 #include <unistd.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
6 #include <sys/mman.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
7
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
8 #include "config.h"
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
9 #include "video_out.h"
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
10
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
11 #ifdef X11_FULLSCREEN
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
12
324
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
13 #include <X11/Xmd.h>
32
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
14 #include <X11/Xlib.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
15 #include <X11/Xutil.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
16 #include <X11/Xatom.h>
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
17
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
18 int vo_depthonscreen=0;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
19 int vo_screenwidth=0;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
20 int vo_screenheight=0;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
21 int vo_dwidth=0;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
22 int vo_dheight=0;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
23
324
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
24 static int dpms_disabled=0;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
25 static int timeout_save=0;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
26
32
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
27 int vo_init( void )
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
28 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
29 int CompletionType = -1;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
30 int mScreen;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
31 int bpp;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
32 char * DisplayName = ":0.0";
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
33 Display * mDisplay;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
34 XImage * mXImage;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
35 Window mRootWin;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
36 static XWindowAttributes attribs;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
37
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
38 if(vo_depthonscreen) return 1; // already called
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
39
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
40 if ( getenv( "DISPLAY" ) ) DisplayName=getenv( "DISPLAY" );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
41 mDisplay=XOpenDisplay( DisplayName );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
42 if ( !mDisplay )
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
43 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
44 fprintf( stderr,"vo: couldn't open the X11 display!\n" );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
45 return 0;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
46 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
47 mScreen=DefaultScreen( mDisplay ); // Screen ID.
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
48 mRootWin=RootWindow( mDisplay,mScreen );// Root window ID.
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
49 vo_screenwidth=DisplayWidth( mDisplay,mScreen );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
50 vo_screenheight=DisplayHeight( mDisplay,mScreen );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
51 // get color depth:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
52 // XGetWindowAttributes(mydisplay, DefaultRootWindow(mDisplay), &attribs);
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
53 XGetWindowAttributes(mDisplay, mRootWin, &attribs);
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
54 vo_depthonscreen=attribs.depth;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
55 // get bits/pixel:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
56 mXImage=XGetImage( mDisplay,mRootWin,0,0,1,1,AllPlanes,ZPixmap );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
57 bpp=mXImage->bits_per_pixel;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
58 XDestroyImage( mXImage );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
59 if((vo_depthonscreen+7)/8 != (bpp+7)/8) vo_depthonscreen=bpp; // by A'rpi
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
60 XCloseDisplay( mDisplay );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
61 printf("X11 running at %dx%d depth: %d\n",vo_screenwidth,vo_screenheight,vo_depthonscreen);
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
62 return 1;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
63 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
64
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
65 #include "../linux/keycodes.h"
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
66 #include "wskeys.h"
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
67
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
68 extern void mplayer_put_key(int code);
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
69
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
70 void vo_x11_putkey(int key){
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
71 switch ( key )
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
72 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
73 case wsLeft: mplayer_put_key(KEY_LEFT); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
74 case wsRight: mplayer_put_key(KEY_RIGHT); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
75 case wsUp: mplayer_put_key(KEY_UP); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
76 case wsDown: mplayer_put_key(KEY_DOWN); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
77 case wsSpace: mplayer_put_key(' '); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
78 case wsEscape: mplayer_put_key(KEY_ESC); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
79 case wsEnter: mplayer_put_key(KEY_ENTER); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
80 case wsq:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
81 case wsQ: mplayer_put_key('q'); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
82 case wsp:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
83 case wsP: mplayer_put_key('p'); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
84 case wsMinus:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
85 case wsGrayMinus: mplayer_put_key('-'); break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
86 case wsPlus:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
87 case wsGrayPlus: mplayer_put_key('+'); break;
369
b1a706452eeb pass keys a-z && A-Z
arpi_esp
parents: 326
diff changeset
88 default: if((key>='a' && key<='z')||(key>='A' && key<='Z')) mplayer_put_key(key);
32
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
89 }
369
b1a706452eeb pass keys a-z && A-Z
arpi_esp
parents: 326
diff changeset
90
32
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
91 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
92
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
93
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
94 // ----- Motif header: -------
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
95
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
96 #define MWM_HINTS_DECORATIONS 2
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
97
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
98 typedef struct
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
99 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
100 long flags;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
101 long functions;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
102 long decorations;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
103 long input_mode;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
104 } MotifWmHints;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
105
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
106 extern MotifWmHints vo_MotifWmHints;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
107 extern Atom vo_MotifHints;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
108 extern int vo_depthonscreen;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
109 extern int vo_screenwidth;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
110 extern int vo_screenheight;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
111
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
112 static MotifWmHints vo_MotifWmHints;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
113 static Atom vo_MotifHints = None;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
114
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
115 void vo_x11_decoration( Display * vo_Display,Window w,int d )
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
116 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
117 vo_MotifHints=XInternAtom( vo_Display,"_MOTIF_WM_HINTS",0 );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
118 if ( vo_MotifHints != None )
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
119 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
120 vo_MotifWmHints.flags=2;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
121 vo_MotifWmHints.decorations=d;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
122 XChangeProperty( vo_Display,w,vo_MotifHints,vo_MotifHints,32,
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
123 PropModeReplace,(unsigned char *)&vo_MotifWmHints,4 );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
124 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
125 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
126
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
127 int vo_x11_check_events(Display *mydisplay){
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
128 int ret=0;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
129 XEvent Event;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
130 char buf[100];
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
131 KeySym keySym;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
132 XComposeStatus stat;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
133 // unsigned long vo_KeyTable[512];
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
134
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
135 while ( XPending( mydisplay ) )
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
136 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
137 XNextEvent( mydisplay,&Event );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
138 switch( Event.type )
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
139 {
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
140 case Expose:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
141 ret|=VO_EVENT_EXPOSE;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
142 break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
143 case ConfigureNotify:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
144 vo_dwidth=Event.xconfigure.width;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
145 vo_dheight=Event.xconfigure.height;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
146 ret|=VO_EVENT_RESIZE;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
147 break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
148 case KeyPress:
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
149 XLookupString( &Event.xkey,buf,sizeof(buf),&keySym,&stat );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
150 vo_x11_putkey( ( (keySym&0xff00) != 0?( (keySym&0x00ff) + 256 ):( keySym ) ) );
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
151 ret|=VO_EVENT_KEYPRESS;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
152 break;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
153 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
154 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
155
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
156 return ret;
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
157 }
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
158
9e66f722790e the common x11 stuff
arpi_esp
parents:
diff changeset
159 #endif
324
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
160
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
161 void saver_on(Display *mDisplay) {
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
162
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
163 int nothing;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
164 if (dpms_disabled)
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
165 {
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
166 if (DPMSQueryExtension(mDisplay, &nothing, &nothing))
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
167 {
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
168 printf ("Enabling DPMS\n");
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
169 DPMSEnable(mDisplay); // restoring power saving settings
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
170 DPMSQueryExtension(mDisplay, &nothing, &nothing);
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
171 }
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
172 }
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
173
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
174 if (timeout_save)
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
175 {
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
176 int dummy, interval, prefer_blank, allow_exp;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
177 XGetScreenSaver(mDisplay, &dummy, &interval, &prefer_blank, &allow_exp);
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
178 XSetScreenSaver(mDisplay, timeout_save, interval, prefer_blank, allow_exp);
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
179 XGetScreenSaver(mDisplay, &timeout_save, &interval, &prefer_blank, &allow_exp);
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
180 }
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
181
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
182 }
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
183
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
184 void saver_off(Display *mDisplay) {
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
185
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
186 int interval, prefer_blank, allow_exp, nothing;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
187
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
188 if (DPMSQueryExtension(mDisplay, &nothing, &nothing))
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
189 {
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
190 BOOL onoff;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
191 CARD16 state;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
192 DPMSInfo(mDisplay, &state, &onoff);
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
193 if (onoff)
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
194 {
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
195 printf ("Disabling DPMS\n");
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
196 dpms_disabled=1;
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
197 DPMSDisable(mDisplay); // monitor powersave off
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
198 }
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
199 }
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
200 XGetScreenSaver(mDisplay, &timeout_save, &interval, &prefer_blank, &allow_exp);
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
201 if (timeout_save)
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
202 XSetScreenSaver(mDisplay, 0, interval, prefer_blank, allow_exp);
720c640332c8 Szebb es jobb screensaver-kikapcsolo resz
laaz
parents: 32
diff changeset
203 // turning off screensaver
326
f6b5c2dbc88e OSD alpha renderers moved to osd.c
arpi_esp
parents: 324
diff changeset
204 }