Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 282409 Details for
Bug 378073
x11-misc/xtrlock: add blank-screen support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Patch to blank screen
xtrlock-2.0-blank-screen.patch (text/plain), 1.45 KB, created by
Ihar Hrachyshka
on 2011-08-07 12:52:09 UTC
(
hide
)
Description:
Patch to blank screen
Filename:
MIME Type:
Creator:
Ihar Hrachyshka
Created:
2011-08-07 12:52:09 UTC
Size:
1.45 KB
patch
obsolete
>--- work/xtrlock-2.0/xtrlock.c Mon Jan 17 12:43:05 2005 >+++ xtrlock.c Thu May 10 17:30:13 2007 >@@ -80,8 +78,8 @@ > XSetWindowAttributes attrib; > Cursor cursor; > Pixmap csr_source,csr_mask; >- XColor csr_fg, csr_bg, dummy; >- int ret; >+ XColor csr_fg, csr_bg, dummy, black; >+ int ret, screen; > #ifdef SHADOW_PWD > struct spwd *sp; > #endif >@@ -120,10 +118,15 @@ > exit(1); > } > >+ screen = DefaultScreen(display); > attrib.override_redirect= True; >+ attrib.background_pixel = BlackPixel(display, screen); > window= XCreateWindow(display,DefaultRootWindow(display), >- 0,0,1,1,0,CopyFromParent,InputOnly,CopyFromParent, >- CWOverrideRedirect,&attrib); >+ 0,0,DisplayWidth(display, screen),DisplayHeight(display, screen), >+ 0,DefaultDepth(display, screen), CopyFromParent, DefaultVisual(display, screen), >+ CWOverrideRedirect|CWBackPixel,&attrib); >+ >+ XAllocNamedColor(display, DefaultColormap(display, screen), "black", &black, &dummy); > > XSelectInput(display,window,KeyPressMask|KeyReleaseMask); > >@@ -151,7 +154,6 @@ > &dummy, &csr_bg); > > >- > cursor= XCreatePixmapCursor(display,csr_source,csr_mask,&csr_fg,&csr_bg, > lock_x_hot,lock_y_hot); > >@@ -166,6 +168,7 @@ > XUngrabKeyboard(display,CurrentTime); > exit(1); > } >+ XSync(display, False); > > for (;;) { > XNextEvent(display,&ev);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 378073
:
282407
| 282409