From 0614a8333b27a26d5af4b3356063acc482be1a1a Mon Sep 17 00:00:00 2001 From: id Date: Fri, 23 Apr 1999 07:26:13 +0000 Subject: [PATCH] Bugs fixes and add KEY_CONTROL_WINDOW_WEIGHT to key move/resize window. --- src/moveres.c | 41 ----------------------------------------- src/wconfig.h.in | 1 + 2 files changed, 1 insertion(+), 41 deletions(-) diff --git a/src/moveres.c b/src/moveres.c index 2319be34..2f782262 100644 --- a/src/moveres.c +++ b/src/moveres.c @@ -1118,39 +1118,6 @@ updateWindowPosition(WWindow *wwin, MoveData *data, Bool doResistance, } -#if 0 -typedef struct _looper { - WWindow *wwin; - int x,y,w,h,ox,oy; -} _looper; - -void -_keyloop(_looper *lpr){ - WWindow *wwin = lpr->wwin; - WScreen *scr = wwin->screen_ptr; - int w = wwin->frame->core->width; - int h = wwin->frame->core->height; - int src_x = wwin->frame_x; - int src_y = wwin->frame_y; - - if (!scr->selected_windows){ - drawTransparentFrame(wwin, src_x+lpr->ox, src_y+lpr->oy, w, h); - } - XUngrabServer(dpy); - XSync(dpy, False); - wusleep(10000); - XGrabServer(dpy); -/* printf("called\n");*/ - if (!scr->selected_windows){ - drawTransparentFrame(wwin, src_x+lpr->ox, src_y+lpr->oy, w, h); - } - /* reset timer */ - if(scr->keymove_tick) - WMAddTimerHandler(15000,(WMCallback*)_keyloop, lpr); -} - -#endif - #define _KS KEY_CONTROL_WINDOW_WEIGHT int @@ -1173,14 +1140,6 @@ wKeyboardMoveResizeWindow(WWindow *wwin) int moment=0; KeyCode shiftl,shiftr,ctrll,ctrlmode; - /* - int timer; - _looper looper; - looper.wwin=wwin; - scr->keymove_tick=1; - WMAddTimerHandler(1000,(WMCallback*)_keyloop, &looper); - */ - shiftl = XKeysymToKeycode(dpy, XK_Shift_L); shiftr = XKeysymToKeycode(dpy, XK_Shift_R); ctrll = XKeysymToKeycode(dpy, XK_Control_L); diff --git a/src/wconfig.h.in b/src/wconfig.h.in index 115555db..742175d9 100644 --- a/src/wconfig.h.in +++ b/src/wconfig.h.in @@ -475,6 +475,7 @@ #define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows * and other objects */ + #define KEY_CONTROL_WINDOW_WEIGHT 1 #define HRESIZE_THRESHOLD 3 -- 2.11.4.GIT