diff options
author | Tim Wiederhake <twied@gmx.net> | 2023-12-27 23:08:57 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-01 12:21:24 +0100 |
commit | 9f68ff072905dba3197deae8d8b275bbacd3f728 (patch) | |
tree | 66e0a9bf6a4daeeb57f4e000023a1582afd89f06 /src/menus.c | |
parent | a752fdad02f5eba89c53a53e4a212cf31cbf4670 (diff) |
Remove disabled code
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Diffstat (limited to 'src/menus.c')
-rw-r--r-- | src/menus.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/menus.c b/src/menus.c index e27df43..4b5dd62 100644 --- a/src/menus.c +++ b/src/menus.c @@ -1118,41 +1118,17 @@ resizeFromCenter(Window w, TwmWindow *tmp_win) int lastx, lasty, bw2; XEvent event; -#if 0 - int namelen; - int width, height; - - namelen = strlen(tmp_win->name); -#endif bw2 = tmp_win->frame_bw * 2; AddingW = tmp_win->attr.width + bw2; AddingH = tmp_win->attr.height + tmp_win->title_height + bw2; -#if 0 - width = (SIZE_HINDENT + MyFont_TextWidth(&Scr->SizeFont, - tmp_win->name, namelen)); - height = Scr->SizeFont.height + SIZE_VINDENT * 2; -#endif XGetGeometry(dpy, w, &JunkRoot, &origDragX, &origDragY, (unsigned int *) &DragWidth, (unsigned int *) &DragHeight, &JunkBW, &JunkDepth); XWarpPointer(dpy, None, w, 0, 0, 0, 0, DragWidth / 2, DragHeight / 2); XQueryPointer(dpy, Scr->Root, &JunkRoot, &JunkChild, &JunkX, &JunkY, &AddingX, &AddingY, &JunkMask); -#if 0 - Scr->SizeStringOffset = width + MyFont_TextWidth(&Scr->SizeFont, ": ", 2); - XResizeWindow(dpy, Scr->SizeWindow, Scr->SizeStringOffset + - Scr->SizeStringWidth, height); - MyFont_DrawImageString(dpy, Scr->SizeWindow, &Scr->SizeFont, Scr->NormalGC, - width, SIZE_VINDENT + Scr->SizeFont.ascent, ": ", 2); -#endif lastx = -10000; lasty = -10000; -#if 0 - MoveOutline(Scr->Root, - origDragX - JunkBW, origDragY - JunkBW, - DragWidth * JunkBW, DragHeight * JunkBW, - tmp_win->frame_bw, tmp_win->title_height); -#endif MenuStartResize(tmp_win, origDragX, origDragY, DragWidth, DragHeight); while (TRUE) { XMaskEvent(dpy, ButtonPressMask | PointerMotionMask, &event); |