Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 140382 Details for
Bug 204751
x11-misc/electricsheep-2.6.8 multiple monitor support patch
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
electricsheep-2.6.8-multihead.patch
electricsheep-2.6.8-multihead.patch (text/plain), 1.66 KB, created by
Matthew Howle
on 2008-01-07 14:19:23 UTC
(
hide
)
Description:
electricsheep-2.6.8-multihead.patch
Filename:
MIME Type:
Creator:
Matthew Howle
Created:
2008-01-07 14:19:23 UTC
Size:
1.66 KB
patch
obsolete
>--- electricsheep-2.6.8/electricsheep.c 2006-07-25 16:45:56.000000000 -0400 >+++ electricsheep-2.6.8-xinerama/electricsheep.c 2007-01-21 13:11:52.000000000 -0500 >@@ -2124,7 +2124,7 @@ > strcat(curl_cmd, " --show-error"); > } > >- srandom(time(0)); >+ srandom(time(0) + getpid()); > > not_playing(); > >--- electricsheep-2.6.8/mpeg2dec/libvo/video_out_x11.c 2006-06-26 15:28:08.000000000 -0400 >+++ electricsheep-2.6.8-xinerama/mpeg2dec/libvo/video_out_x11.c 2007-01-21 01:44:45.000000000 -0500 >@@ -531,14 +531,18 @@ > if (window_id == -3) { > /* display zoomed on the (virtual) root window */ > instance->window = DefaultRootWindow (instance->display); >- instance->displaywidth = DisplayWidth(instance->display, DefaultScreen (instance->display)); >- instance->displayheight = DisplayHeight(instance->display, DefaultScreen (instance->display)); >+ XWindowAttributes xgwa; >+ XGetWindowAttributes (instance->display, instance->window, &xgwa); >+ instance->displaywidth = xgwa.width; >+ instance->displayheight = xgwa.height; > } else if (window_id == -2) { > /* display non-zoomed on the (virtual) root window */ > int w, h; >- w = DisplayWidth(instance->display, DefaultScreen (instance->display)); >- h = DisplayHeight(instance->display, DefaultScreen (instance->display)); > instance->window = DefaultRootWindow (instance->display); >+ XWindowAttributes xgwa; >+ XGetWindowAttributes (instance->display, instance->window, &xgwa); >+ w = xgwa.width; >+ h = xgwa.height; > instance->corner_x = (w - instance->width)/2; > instance->corner_y = (h - instance->height)/2; > } else if (window_id == -1) {
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 204751
:
140380
| 140382