FreeBSD Bugzilla – Attachment 93414 Details for
Bug 131309
sysutils/wmbluecpu: libxcb + wmbluecpu problem?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
20080211-wmbluecpu.patch
20080211-wmbluecpu.patch (text/plain), 4.19 KB, created by
Benjamin Close
on 2009-02-16 22:35:43 UTC
(
hide
)
Description:
20080211-wmbluecpu.patch
Filename:
MIME Type:
Creator:
Benjamin Close
Created:
2009-02-16 22:35:43 UTC
Size:
4.19 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /devel/FreeBSD/cvs/ports/sysutils/wmbluecpu/Makefile,v >retrieving revision 1.7 >diff -u -r1.7 Makefile >--- Makefile 23 Mar 2008 16:43:52 -0000 1.7 >+++ Makefile 11 Feb 2009 02:14:19 -0000 >@@ -7,7 +7,7 @@ > > PORTNAME= wmbluecpu > PORTVERSION= 0.4 >-PORTREVISION= 3 >+PORTREVISION= 4 > CATEGORIES= sysutils windowmaker > MASTER_SITES= ${MASTER_SITE_SUNSITE} > MASTER_SITE_SUBDIR= X11/xutils >Index: files/patch-dockapp.c >=================================================================== >RCS file: files/patch-dockapp.c >diff -N files/patch-dockapp.c >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-dockapp.c 11 Feb 2009 02:13:10 -0000 >@@ -0,0 +1,107 @@ >+--- dockapp.c 2003-03-23 05:10:15.000000000 +1030 >++++ dockapp.c 2009-02-11 12:34:18.897651000 +1030 >+@@ -238,9 +238,9 @@ >+ 32, PropModeReplace, (unsigned char *)&mwmhints, 5); >+ } >+ XMapWindow(display, mapwindow); >+- signal(SIGINT, handle_signal); >+- signal(SIGQUIT, handle_signal); >+- signal(SIGTERM, handle_signal); >++ //signal(SIGINT, handle_signal); >++ //signal(SIGQUIT, handle_signal); >++ //signal(SIGTERM, handle_signal); >+ } >+ >+ void update_window() >+@@ -253,42 +253,55 @@ >+ { >+ XEvent event; >+ int winx, winy; >++ fd_set fdset; >++ struct timeval timeout; >+ >+- XNextEvent(display, &event); >+- switch(event.type) >+- { >+- case Expose: >+- update_window(); >+- break; >+- case ButtonPress: >+- if(opt_window && (event.xbutton.button == 1)) >+- { >+- XDefineCursor(display, mapwindow, fleur); >+- moving = 1; >+- oldx = event.xbutton.x; >+- oldy = event.xbutton.y; >+- } >+- break; >+- case MotionNotify: >+- winx = event.xmotion.x_root - oldx; >+- winy = event.xmotion.y_root - oldy; >+- if(winx < 0) winx = 0; >+- if(winy < 0) winy = 0; >+- if(winx > (screenwidth - WINDOW_WIDTH)) winx = screenwidth - WINDOW_WIDTH; >+- if(winy > (screenheight - WINDOW_HEIGHT)) winy = screenheight - WINDOW_HEIGHT; >+- if(moving) >+- XMoveWindow(display, mapwindow, winx, winy); >+- break; >+- case ButtonRelease: >+- if(opt_window) >+- { >+- moving = 0; >+- XUndefineCursor(display, mapwindow); >+- } >+- break; >+- case ClientMessage: >+- if(event.xclient.data.l[0] == wm_delete_window) >+- exitloop = 1; >+- break; >++ FD_ZERO(&fdset); >++ FD_SET(ConnectionNumber(display), &fdset); >++ timeout.tv_usec = opt_timer_miliseconds % 1000; >++ timeout.tv_sec = opt_timer_miliseconds/1000; >++ >++ if( select(ConnectionNumber(display)+1, &fdset, NULL, NULL, &timeout) > 0 ){ >++ while( XPending( display )){ >++ XNextEvent(display, &event); >++ switch(event.type) >++ { >++ case Expose: >++ update_window(); >++ break; >++ case ButtonPress: >++ if(opt_window && (event.xbutton.button == 1)) >++ { >++ XDefineCursor(display, mapwindow, fleur); >++ moving = 1; >++ oldx = event.xbutton.x; >++ oldy = event.xbutton.y; >++ } >++ break; >++ case MotionNotify: >++ winx = event.xmotion.x_root - oldx; >++ winy = event.xmotion.y_root - oldy; >++ if(winx < 0) winx = 0; >++ if(winy < 0) winy = 0; >++ if(winx > (screenwidth - WINDOW_WIDTH)) winx = screenwidth - WINDOW_WIDTH; >++ if(winy > (screenheight - WINDOW_HEIGHT)) winy = screenheight - WINDOW_HEIGHT; >++ if(moving) >++ XMoveWindow(display, mapwindow, winx, winy); >++ break; >++ case ButtonRelease: >++ if(opt_window) >++ { >++ moving = 0; >++ XUndefineCursor(display, mapwindow); >++ } >++ break; >++ case ClientMessage: >++ if(event.xclient.data.l[0] == wm_delete_window) >++ exitloop = 1; >++ break; >++ } >++ } >++ } else { >++ handle_timer(SIGALRM); >+ } >+ } >Index: files/patch-wmbluecpu.c >=================================================================== >RCS file: files/patch-wmbluecpu.c >diff -N files/patch-wmbluecpu.c >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-wmbluecpu.c 11 Feb 2009 02:12:55 -0000 >@@ -0,0 +1,17 @@ >+--- wmbluecpu.c 2003-03-17 12:02:13.000000000 +1030 >++++ wmbluecpu.c 2009-02-11 12:35:43.966803000 +1030 >+@@ -32,12 +32,12 @@ >+ argv = varg; >+ parse_arguments(); >+ make_window(); >+- start_timer(); >++ cpu_init(); >++ handle_timer(14); >+ while(!exitloop) >+ { >+ process_events(); >+ } >+- stop_timer(); >+ free_stuff(); >+ return 0; >+ }
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 131309
: 93414