mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Bugs fixes and add KEY_CONTROL_WINDOW_WEIGHT to key move/resize window.
This commit is contained in:
@@ -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
|
#define _KS KEY_CONTROL_WINDOW_WEIGHT
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -1173,14 +1140,6 @@ wKeyboardMoveResizeWindow(WWindow *wwin)
|
|||||||
int moment=0;
|
int moment=0;
|
||||||
KeyCode shiftl,shiftr,ctrll,ctrlmode;
|
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);
|
shiftl = XKeysymToKeycode(dpy, XK_Shift_L);
|
||||||
shiftr = XKeysymToKeycode(dpy, XK_Shift_R);
|
shiftr = XKeysymToKeycode(dpy, XK_Shift_R);
|
||||||
ctrll = XKeysymToKeycode(dpy, XK_Control_L);
|
ctrll = XKeysymToKeycode(dpy, XK_Control_L);
|
||||||
|
|||||||
@@ -475,6 +475,7 @@
|
|||||||
|
|
||||||
#define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows
|
#define MOVE_THRESHOLD 5 /* how many pixels to move before dragging windows
|
||||||
* and other objects */
|
* and other objects */
|
||||||
|
|
||||||
#define KEY_CONTROL_WINDOW_WEIGHT 1
|
#define KEY_CONTROL_WINDOW_WEIGHT 1
|
||||||
|
|
||||||
#define HRESIZE_THRESHOLD 3
|
#define HRESIZE_THRESHOLD 3
|
||||||
|
|||||||
Reference in New Issue
Block a user