summaryrefslogtreecommitdiff
path: root/src/menus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/menus.c')
-rw-r--r--src/menus.c24
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);