Lines Matching refs:efb_xw
28 efb_xw_t efb_xw;
122 sigprocmask(SIG_BLOCK, &newprocmask, &efb_xw.xw_procmask);
130 sigprocmask(SIG_SETMASK, &efb_xw.xw_procmask, (sigset_t *)NULL);
152 XMapRaised(efb_xw.xw_display, efb_xw.xw_window);
156 (ulong_t)efb_xw.xw_window);
171 XSync(efb_xw.xw_display, False);
182 if (efb_xw.xw_display == NULL)
185 XUnmapWindow(efb_xw.xw_display, efb_xw.xw_window);
189 (ulong_t)efb_xw.xw_window);
201 XSync(efb_xw.xw_display, False);
213 if (efb_xw.xw_dispname == NULL)
214 efb_xw.xw_dispname = ":0.0";
216 if (efb_xw.xw_display == NULL) {
217 efb_xw.xw_display = XOpenDisplay(efb_xw.xw_dispname);
219 if (efb_xw.xw_display == NULL) {
223 efb_xw.xw_dispname);
231 efb_xw.xw_dispname, efb_xw.xw_display);
235 XSynchronize(efb_xw.xw_display, True);
248 register Window const root = RootWindow(efb_xw.xw_display,
249 efb_xw.xw_screen);
253 if (efb_xw.xw_cursor != 0)
256 emptypixmap = XCreateBitmapFromData(efb_xw.xw_display, root, "", 1, 1);
258 efb_xw.xw_cursor = XCreatePixmapCursor(efb_xw.xw_display,
265 (ulong_t)efb_xw.xw_cursor);
267 XFreePixmap(efb_xw.xw_display, emptypixmap);
277 register Window const root = RootWindow(efb_xw.xw_display,
278 efb_xw.xw_screen);
279 register int const width = DisplayWidth(efb_xw.xw_display,
280 efb_xw.xw_screen);
281 register int const height = DisplayHeight(efb_xw.xw_display,
282 efb_xw.xw_screen);
285 if (efb_xw.xw_window != NULL)
289 xswa.cursor = efb_xw.xw_cursor;
296 efb_xw.xw_window = XCreateWindow(efb_xw.xw_display,
309 (ulong_t)efb_xw.xw_window);
311 XStoreName(efb_xw.xw_display, efb_xw.xw_window, "libvtsSUNWefb");
321 if (efb_xw.xw_grab_server == True)
324 efb_xw.xw_grab_server = XGrabServer(efb_xw.xw_display);
337 if (efb_xw.xw_grab_server != True)
340 efb_xw.xw_grab_server = !XUngrabServer(efb_xw.xw_display);
355 if (efb_xw.xw_grab_keyboard == True)
358 status = XGrabKeyboard(efb_xw.xw_display, efb_xw.xw_window,
360 efb_xw.xw_grab_keyboard = status == GrabSuccess;
364 (ulong_t)efb_xw.xw_window,
385 if (efb_xw.xw_grab_keyboard != True)
388 status = XUngrabKeyboard(efb_xw.xw_display, CurrentTime);
390 efb_xw.xw_grab_keyboard = False;
405 if (efb_xw.xw_grab_pointer == True)
408 status = XGrabPointer(efb_xw.xw_display, efb_xw.xw_window,
410 None, efb_xw.xw_cursor, CurrentTime);
412 efb_xw.xw_grab_pointer = status == GrabSuccess;
417 (ulong_t)efb_xw.xw_window,
440 if (efb_xw.xw_grab_pointer != True)
443 status = XUngrabPointer(efb_xw.xw_display, CurrentTime);
445 efb_xw.xw_grab_pointer = False;
459 XGetScreenSaver(efb_xw.xw_display,
460 &efb_xw.xw_ss_timeout,
461 &efb_xw.xw_ss_interval,
462 &efb_xw.xw_ss_prefer_blanking,
463 &efb_xw.xw_ss_allow_exposures);
465 efb_xw.xw_ss_saved = True;
469 efb_xw.xw_ss_timeout,
470 efb_xw.xw_ss_interval,
471 efb_xw.xw_ss_prefer_blanking,
472 efb_xw.xw_ss_allow_exposures);
476 XResetScreenSaver(efb_xw.xw_display);
478 efb_xw.xw_ss_disabled = True;
480 XSetScreenSaver(efb_xw.xw_display,
482 efb_xw.xw_ss_interval,
483 efb_xw.xw_ss_prefer_blanking,
484 efb_xw.xw_ss_allow_exposures);
489 efb_xw.xw_ss_interval,
490 efb_xw.xw_ss_prefer_blanking,
491 efb_xw.xw_ss_allow_exposures);
501 if (efb_xw.xw_ss_saved != True ||
502 efb_xw.xw_ss_disabled != True) {
503 efb_xw.xw_ss_disabled = False;
504 efb_xw.xw_ss_saved = False;
508 XSetScreenSaver(efb_xw.xw_display,
509 efb_xw.xw_ss_timeout,
510 efb_xw.xw_ss_interval,
511 efb_xw.xw_ss_prefer_blanking,
512 efb_xw.xw_ss_allow_exposures);
514 efb_xw.xw_ss_disabled = False;
518 efb_xw.xw_ss_timeout,
519 efb_xw.xw_ss_interval,
520 efb_xw.xw_ss_prefer_blanking,
521 efb_xw.xw_ss_allow_exposures);
523 efb_xw.xw_ss_saved = False;
540 status = DPMSQueryExtension(efb_xw.xw_display,
552 efb_xw.xw_dpms_saved = DPMSInfo(efb_xw.xw_display,
553 &efb_xw.xw_dpms_power, &efb_xw.xw_dpms_state);
557 efb_xw.xw_dpms_saved,
558 efb_xw.xw_dpms_power,
559 efb_xw.xw_dpms_state);
561 if (efb_xw.xw_dpms_saved != True ||
562 efb_xw.xw_dpms_state != True)
566 efb_xw.xw_dpms_disabled = True;
568 DPMSDisable(efb_xw.xw_display);
584 if (efb_xw.xw_dpms_saved != True ||
585 efb_xw.xw_dpms_disabled != True) {
586 efb_xw.xw_dpms_disabled = False;
587 efb_xw.xw_dpms_saved = False;
591 DPMSEnable(efb_xw.xw_display);
593 efb_xw.xw_dpms_disabled = False;
598 efb_xw.xw_dpms_saved = False;
635 signo = sigsetjmp(efb_xw.xw_sigjmpbuf, 1);
652 sigprocmask(SIG_SETMASK, &efb_xw.xw_procmask, &oldprocmask);
704 siglongjmp(efb_xw.xw_sigjmpbuf, signo);
762 if (efb_xw.xw_display == NULL)
765 while (XPending(efb_xw.xw_display)) {
766 XNextEvent(efb_xw.xw_display, &event);