亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? windows.c

?? 安裝DDD之前
?? C
?? 第 1 頁 / 共 4 頁
字號:
{    MwmWindow *t;    int xl = -1, yt, DragWidth, DragHeight;    int gravx, gravy;		/* gravity signs for positioning */    int show_feed;    Boolean usePPos;    get_gravity_offsets(tmp_win, &gravx, &gravy);    /* Select a desk to put the window on (in list of priority):     * 1. Sticky Windows stay on the current desk.     * 2. Windows specified with StartsOnDesk go where specified     * 3. Put it on the desk it was on before the restart.     * 4. Transients go on the same desk as their parents.     * 5. Window groups stay together (completely untested)     */    tmp_win->Desk = scr->current_desk;    if (tmp_win->flags & STICKY)	tmp_win->Desk = scr->current_desk;    else    {	Atom atype;	int aformat;	unsigned long nitems, bytes_remain;	unsigned char *prop;	if ((tmp_win->wmhints) && (tmp_win->wmhints->flags & WindowGroupHint) &&	    (tmp_win->wmhints->window_group != None) &&	    (tmp_win->wmhints->window_group != scr->root_win))	{	    /* Try to find the group leader or another window	     * in the group */	    for (t = scr->mwm_root.next; t != NULL; t = t->next)	    {		if ((t->w == tmp_win->wmhints->window_group) ||		    ((t->wmhints) && (t->wmhints->flags & WindowGroupHint) &&		 (t->wmhints->window_group == tmp_win->wmhints->window_group)))		    tmp_win->Desk = t->Desk;	    }	}	if ((tmp_win->flags & TRANSIENT) && (tmp_win->transientfor != None) &&	    (tmp_win->transientfor != scr->root_win))	{	    /* Try to find the parent's desktop */	    for (t = scr->mwm_root.next; t != NULL; t = t->next)	    {		if (t->w == tmp_win->transientfor)		    tmp_win->Desk = t->Desk;	    }	}	if ((XGetWindowProperty(dpy, tmp_win->w, XA_WM_DESKTOP, 0L, 1L, True,				XA_WM_DESKTOP, &atype, &aformat, &nitems,				&bytes_remain, &prop)) == Success)	{	    if (prop != NULL)	    {		tmp_win->Desk = *(unsigned long *)prop;		XFree(prop);	    }	}    }    /* I think it would be good to switch to the selected desk     * whenever a new window pops up, except during initialization */    if (!PPosOverride)	DT_ChangeDesks(scr, 0, tmp_win->Desk);    /* Desk has been selected, now pick a location for the window */    /*     *  If     *     o  the window is a transient, or     *      *     o  a USPosition was requested     *      *   then put the window where requested.     *     */#if 0    fprintf(stderr,	    "PlaceWindow: UsePPosition = %s, Hints %s%s, attr x %d y %d\n",       (tmp_win->use_p_position == XmUSE_PPOSITION_ON) ? "XmUSE_PPOSITION_ON" :	    (tmp_win->use_p_position == XmUSE_PPOSITION_NON_ZERO)	    ? "XmUSE_PPOSITION_NON_ZERO" : "???",	    (tmp_win->hints.flags & USPosition) ? "USPosition" : "",	    (tmp_win->hints.flags & PPosition) ? "PPosition" : "",	    tmp_win->attr.x, tmp_win->attr.y);#endif    if (tmp_win->use_p_position == XmUSE_PPOSITION_ON &&	(tmp_win->hints.flags & USPosition ||	 tmp_win->hints.flags & PPosition))	usePPos = True;    else if (tmp_win->use_p_position == XmUSE_PPOSITION_NON_ZERO &&	     (tmp_win->hints.flags & USPosition ||	      tmp_win->hints.flags & PPosition) &&	     (tmp_win->attr.x != 0 || tmp_win->attr.y != 0))	usePPos = True;    else	usePPos = False;    if (!(tmp_win->flags & TRANSIENT) &&	!(PPosOverride) &&	!(usePPos) &&	!((tmp_win->wmhints) &&	  (tmp_win->wmhints->flags & StateHint) &&	  (tmp_win->wmhints->initial_state == IconicState)))    {	/* Get user's window placement */	xl = -1;	yt = -1;	if (Mwm.client_auto_place)	    smart_placement(scr, tmp_win,			    tmp_win->frame_width + 2 * tmp_win->bw,			    tmp_win->frame_height + 2 * tmp_win->bw,			    &xl, &yt);	if (xl < 0)	{	    if (MISC_Grab(scr, POSITION_CURS))	    {		/* Grabbed the pointer - continue */		XGrabServer(dpy);		if (XGetGeometry(dpy, tmp_win->w, &JunkRoot, &JunkX, &JunkY,				 (unsigned int *)&DragWidth,				 (unsigned int *)&DragHeight,				 &JunkBW, &JunkDepth) == 0)		{		    XtFree((char *)tmp_win);		    XUngrabServer(dpy);		    return False;		}		DragWidth += 2 * tmp_win->boundary_width +		    2 * tmp_win->matte_width;		DragHeight +=		    tmp_win->title_height +		    2 * tmp_win->boundary_width +		    2 * tmp_win->matte_width;		if (Mwm.show_feedback & MWM_FEEDBACK_PLACEMENT)		    XMapRaised(dpy, scr->size_win);		show_feed = Mwm.show_feedback & MWM_FEEDBACK_MOVE;		if (!(Mwm.show_feedback & MWM_FEEDBACK_PLACEMENT))		    Mwm.show_feedback &= ~MWM_FEEDBACK_MOVE;		MOVE_EventLoop(scr, tmp_win, 0, 0, DragWidth, DragHeight,			       &xl, &yt, False, True);		if (Mwm.show_feedback & MWM_FEEDBACK_PLACEMENT)		    XUnmapWindow(dpy, scr->size_win);		if (show_feed)		    Mwm.show_feedback |= MWM_FEEDBACK_MOVE;		XUngrabServer(dpy);		MISC_Ungrab(scr);	    }	    else	    {		/* couldn't grab the pointer - better do something */		XBell(dpy, scr->screen);		xl = 0;		yt = 0;	    }	}	tmp_win->attr.y = yt - tmp_win->old_bw + tmp_win->bw;	tmp_win->attr.x = xl - tmp_win->old_bw + tmp_win->bw;	tmp_win->xdiff = xl;	tmp_win->ydiff = yt;    }    else    {	/* the USPosition was specified, or the window is a transient, 	 * or it starts iconic so place it automatically */	tmp_win->xdiff = tmp_win->attr.x;	tmp_win->ydiff = tmp_win->attr.y;	/* put it where asked, mod title bar */	/* if the gravity is towards the top, move it by the title height */	tmp_win->attr.y -= gravy * (tmp_win->bw - tmp_win->old_bw);	tmp_win->attr.x -= gravx * (tmp_win->bw - tmp_win->old_bw);	if (gravy > 0)	    tmp_win->attr.y -= tmp_win->title_height +		2 * tmp_win->boundary_width +		2 * tmp_win->matte_width;	if (gravx > 0)	    tmp_win->attr.x -= 2 * tmp_win->boundary_width +		2 * tmp_win->matte_width;    }    return True;}/* * add a new window to the mwm list */static MwmWindow *add_window(ScreenInfo *scr, Window w){    MwmWindow *tmp_win;		/* new mwm window structure */    int i, width, height, tx, ty;    int xws, yws, xbs, ybs;    unsigned wws, hws, wbs, hbs;    int boundingShaped, clipShaped;    XTextProperty text_prop;    NeedToResizeToo = False;    /* allocate space for the mwm window */    tmp_win = (MwmWindow *)XtCalloc(1, sizeof(MwmWindow));    if (tmp_win == NULL)    {	return NULL;    }    tmp_win->w = w;    tmp_win->classhint.res_name = NoName;    tmp_win->classhint.res_class = NoName;    XGetClassHint(dpy, tmp_win->w, &tmp_win->classhint);    if (tmp_win->classhint.res_name == NULL)	tmp_win->classhint.res_name = NoName;    if (tmp_win->classhint.res_class == NULL)	tmp_win->classhint.res_class = NoName;    RES_GetClientDefaults(scr, tmp_win, tmp_win->classhint.res_name, tmp_win->classhint.res_class);    if (XGetGeometry(dpy, tmp_win->w, &JunkRoot, &JunkX, &JunkY,		     &JunkWidth, &JunkHeight, &JunkBW, &JunkDepth) == 0)    {	XtFree((char *)tmp_win);	return (NULL);    }    PROP_GetWmProtocols(tmp_win);    PROP_GetWmColormapWindows(tmp_win);    if (!(XGetWindowAttributes(dpy, tmp_win->w, &(tmp_win->attr))))	tmp_win->attr.colormap = scr->mwm_root.attr.colormap;    if (XGetWMName(dpy, tmp_win->w, &text_prop) != 0)	tmp_win->name = (char *)text_prop.value;    else	tmp_win->name = NoName;    tmp_win->wmhints = XGetWMHints(dpy, tmp_win->w);    if (XGetTransientForHint(dpy, tmp_win->w, &tmp_win->transientfor))	tmp_win->flags |= TRANSIENT;    else	tmp_win->flags &= ~TRANSIENT;    tmp_win->old_bw = tmp_win->attr.border_width;    XShapeSelectInput(dpy, tmp_win->w, ShapeNotifyMask);    XShapeQueryExtents(dpy, tmp_win->w,		       &boundingShaped, &xws, &yws, &wws, &hws,		       &clipShaped, &xbs, &ybs, &wbs, &hbs);    tmp_win->wShaped = boundingShaped;    tmp_win->title_height = scr->components[MWM_TITLE_A].f_height + 3 +	tmp_win->bw;    PROP_GetWmIconName(tmp_win);    PROP_GetMwmHints(tmp_win);    DEC_SelectDecorations(scr, tmp_win);    if ((tmp_win->wmhints)	&& (tmp_win->wmhints->flags & (IconWindowHint | IconPixmapHint)))    {	/* window has its own icon */	tmp_win->icon_bitmap_file = NULL;    }    /* use default icon if nothing specified */    else if (tmp_win->icon_image == NULL)	tmp_win->icon_bitmap_file = scr->DefaultIcon;    PROP_GetWindowSizeHints(tmp_win);    /* Tentative size estimate */    tmp_win->frame_width = tmp_win->attr.width +	2 * tmp_win->boundary_width +	2 * tmp_win->matte_width;    tmp_win->frame_height = tmp_win->attr.height +	tmp_win->title_height +	2 * tmp_win->boundary_width +	2 * tmp_win->matte_width;    WIN_ConstrainWindow(scr, tmp_win,			&tmp_win->frame_width, &tmp_win->frame_height);    if (!place_window(scr, tmp_win))	return NULL;    /*     * Make sure the client window still exists.  We don't want to leave an     * orphan frame window if it doesn't.  Since we now have the server     * grabbed, the window can't disappear later without having been     * reparented, so we'll get a DestroyNotify for it.  We won't have     * gotten one for anything up to here, however.     */    XGrabServer(dpy);    if (XGetGeometry(dpy, w, &JunkRoot, &JunkX, &JunkY,		     &JunkWidth, &JunkHeight,		     &JunkBW, &JunkDepth) == 0)    {	XtFree((char *)tmp_win);	XUngrabServer(dpy);	return (NULL);    }    XSetWindowBorderWidth(dpy, tmp_win->w, 0);    if (tmp_win->icon_label == NULL)	tmp_win->icon_label = tmp_win->classhint.res_name;    tmp_win->icon_active_label = tmp_win->name;    tmp_win->flags &= ~ICONIFIED;    tmp_win->flags &= ~ICON_UNMAPPED;    tmp_win->flags &= ~MAXIMIZED;    /* add the window into the mwm list */    MISC_AddToTree(scr, tmp_win);    DEC_CreateDecorations(scr, tmp_win);    if (XGetWMName(dpy, tmp_win->w, &text_prop) != 0)	tmp_win->name = (char *)text_prop.value;    else	tmp_win->name = NoName;    if (tmp_win->w != scr->pager_win && tmp_win->w != scr->restart_win &&	tmp_win->w != scr->quit_win && tmp_win->w != scr->toggle_win)	XAddToSaveSet(dpy, tmp_win->w);    /*     * Reparenting generates an UnmapNotify event, followed by a MapNotify.     * Set the map state to False to prevent a transition back to     * WithdrawnState in HandleUnmapNotify.  Map state gets set correctly     * again in HandleMapNotify.     */    tmp_win->flags &= ~MAPPED;    width = tmp_win->frame_width;    tmp_win->frame_width = 0;    height = tmp_win->frame_height;    tmp_win->frame_height = 0;    DEC_ConfigureDecorations(scr, tmp_win, tmp_win->frame_x, tmp_win->frame_y,			     width, height, True);    /* wait until the window is iconified and the icon window is mapped     * before creating the icon window      */    tmp_win->icon_w = None;    grab_buttons(scr, tmp_win);    grab_keys(scr, tmp_win);    save_context(tmp_win);    PROP_GetMwmMenu(tmp_win);    MENU_BuildWindowMenu(scr, tmp_win);    PROP_GetMwmMessages(tmp_win);    WIN_Raise(scr, tmp_win);    XUngrabServer(dpy);    XGetGeometry(dpy, tmp_win->w, &JunkRoot, &JunkX, &JunkY,		 &JunkWidth, &JunkHeight, &JunkBW, &JunkDepth);    XTranslateCoordinates(dpy, tmp_win->frame, scr->root_win, JunkX, JunkY,			  &tx, &ty, &JunkChild);    tmp_win->xdiff -= tx;    tmp_win->ydiff -= ty;    if (Mwm.keyboard_focus_policy == XmEXPLICIT)    {	/* need to grab all buttons for window that we are about to	 * unhighlight */	for (i = 0; i < 3; i++)	    if (scr->buttons2grab & (1 << i))	    {		XGrabButton(dpy, (i + 1), 0, tmp_win->frame, True,			    ButtonPressMask, GrabModeSync, GrabModeAsync, None,			    scr->cursors[SYS_CURS]);		XGrabButton(dpy, (i + 1), LockMask, tmp_win->frame, True,			    ButtonPressMask, GrabModeSync, GrabModeAsync, None,			    scr->cursors[SYS_CURS]);	    }    }    PROP_GetWmProtocols(tmp_win);    PROP_GetWmColormapWindows(tmp_win);    if (!(XGetWindowAttributes(dpy, tmp_win->w, &(tmp_win->attr))))	tmp_win->attr.colormap = scr->mwm_root.attr.colormap;    if (NeedToResizeToo)    {	int show_feed;	XWarpPointer(dpy, scr->root_win, scr->root_win, 0, 0, scr->d_width,		     scr->d_height,		     tmp_win->frame_x + (tmp_win->frame_width >> 1),		     tmp_win->frame_y + (tmp_win->frame_height >> 1));	show_feed = Mwm.show_feedback & MWM_FEEDBACK_RESIZE;	if (!(Mwm.show_feedback & MWM_FEEDBACK_PLACEMENT))	    Mwm.show_feedback &= ~MWM_FEEDBACK_RESIZE;	RESIZE_EventLoop(scr, tmp_win->w, tmp_win, 0, 0, 0, 0);	if (show_feed)	    Mwm.show_feedback |= MWM_FEEDBACK_RESIZE;    }    COLOR_InstallWindowColorMap(scr, scr->mwm_colormap);    return (tmp_win);}/* * release a window and the subs */static voidrelease_window(ScreenInfo *scr, MwmWindow *win){    MwmWindow *tmp;    for (tmp = win->child; tmp != NULL; tmp = tmp->next)	release_window(scr, tmp);    XUnmapWindow(dpy, win->frame);    WIN_RestoreWithdrawn(scr, win, True);    XDestroyWindow(dpy, win->frame);}/* * count the transient children of a window */static intcount_transients(ScreenInfo *scr, MwmWindow *win){    MwmWindow *tmp;    int count = 0;    for (tmp = win->child; tmp != NULL; tmp = tmp->next)    {	count++;	count += count_transients(scr, tmp);	if ((scr->pager_win) && !(tmp->flags & STICKY))	    XRaiseWindow(dpy, tmp->pager_view);	if ((tmp->flags & ICONIFIED))	{	    count += 2;	}    }    return count;}/* * gather up the transients */static voidgather_transients(MwmWindow *win, Window *wins, int *count){    MwmWindow *tmp;    for (tmp = win->child; tmp != NULL; tmp = tmp->next)	gather_transients(tmp, wins, count);    for (tmp = win->child; tmp != NULL; tmp = tmp->next)    {	wins[(*count)++] = tmp->frame;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美电视剧免费观看| 午夜一区二区三区视频| 亚洲自拍偷拍综合| 精品一区二区免费| 欧美亚洲综合色| 中文字幕av一区二区三区高| 亚洲成在人线在线播放| 国产成人av影院| 日韩一区二区在线看| 亚洲综合色网站| 东方aⅴ免费观看久久av| 欧美一区二区日韩| 亚洲国产欧美日韩另类综合| 成人一区在线看| 欧美大白屁股肥臀xxxxxx| 亚洲欧洲精品天堂一级| 韩日精品视频一区| 欧美一区二区三区免费| 亚洲高清三级视频| 99久久99久久精品国产片果冻| 精品国产髙清在线看国产毛片| 亚洲gay无套男同| 色婷婷av一区二区三区大白胸 | 亚洲va国产天堂va久久en| 福利电影一区二区| 精品免费视频一区二区| 日本美女一区二区| 欧美日韩精品欧美日韩精品一综合 | 国产亚洲欧美激情| 国产真实乱子伦精品视频| 日韩欧美国产一区二区在线播放 | 精品亚洲aⅴ乱码一区二区三区| 欧美日韩国产天堂| 午夜精品福利一区二区三区av| 在线看日本不卡| 一区二区三区在线视频免费| 色综合久久综合网| 亚洲欧美日韩成人高清在线一区| 97se亚洲国产综合在线| 亚洲欧洲精品一区二区三区| 91视频免费观看| 一个色妞综合视频在线观看| 在线观看精品一区| 亚洲国产日韩综合久久精品| 欧美精品久久99久久在免费线 | 国产成a人亚洲精品| 国产亚洲一本大道中文在线| 国产91综合网| 亚洲欧美日韩国产综合在线| 欧美在线播放高清精品| 舔着乳尖日韩一区| 精品免费99久久| 成人免费av网站| 一区二区三区色| 日韩精品资源二区在线| 国产成人欧美日韩在线电影| 亚洲欧美一区二区视频| 欧美日韩黄视频| 国产一区二区精品久久99| 欧美激情在线免费观看| 91高清在线观看| 蜜桃视频一区二区三区在线观看 | 日韩午夜av一区| 高清视频一区二区| 亚洲黄色片在线观看| 欧美一区二区精美| 国产成人8x视频一区二区| 亚洲制服丝袜在线| 欧美成人精品1314www| 波多野结衣中文一区| 视频一区国产视频| 中文字幕免费不卡| 欧美日韩国产美女| 国产成人鲁色资源国产91色综| 一区二区三区四区在线| 久久久不卡影院| 欧美日韩高清一区| 国产一区激情在线| 一区二区三区免费观看| 精品少妇一区二区三区| 99精品热视频| 欧美午夜精品久久久| 韩国v欧美v日本v亚洲v| 一区二区三区不卡视频在线观看 | 国产一区二区三区| 亚洲激情五月婷婷| 久久综合丝袜日本网| 欧美色中文字幕| 99r精品视频| 国产成人精品免费一区二区| 美日韩一区二区| 亚洲高清久久久| 亚洲天天做日日做天天谢日日欢| 欧美电影免费观看高清完整版| 欧美亚洲图片小说| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 91天堂素人约啪| 国产精品一区二区无线| 免费观看久久久4p| 亚洲精品欧美综合四区| 国产精品色婷婷久久58| 精品毛片乱码1区2区3区| 精品视频一区二区不卡| 99久久综合精品| 成人午夜视频免费看| 黄色成人免费在线| 麻豆国产91在线播放| 欧美色图激情小说| 99精品偷自拍| 91在线看国产| 99re这里只有精品视频首页| 不卡一区中文字幕| 国产电影一区在线| 国产麻豆成人精品| 国产一区二区三区最好精华液| 蜜桃视频第一区免费观看| 日韩电影在线一区二区三区| 午夜伊人狠狠久久| 亚洲国产视频在线| 亚洲成av人片一区二区| 午夜一区二区三区视频| 丝袜美腿亚洲色图| 久久国产剧场电影| 国产在线播放一区三区四| 韩国av一区二区| 国产乱子伦视频一区二区三区| 激情综合亚洲精品| 国产精品一卡二卡| 粉嫩绯色av一区二区在线观看| 成人在线综合网站| 99免费精品视频| 欧美亚洲图片小说| 日韩一区二区免费在线电影| 久久亚洲精华国产精华液| 国产亚洲一区二区在线观看| 中文字幕一区二区三区四区不卡 | 日本乱码高清不卡字幕| 色欲综合视频天天天| 欧美体内she精视频| 这里只有精品99re| 久久综合999| 成人欧美一区二区三区黑人麻豆| 成人性生交大片免费看中文网站| 不卡av在线免费观看| 欧美性猛交xxxx乱大交退制版| 日韩视频一区在线观看| 欧美高清在线一区二区| 亚洲一区影音先锋| 激情欧美日韩一区二区| 99久久综合99久久综合网站| 欧美日韩国产中文| 国产欧美视频一区二区三区| 亚洲一区二区精品久久av| 久久成人免费网站| 99国产一区二区三精品乱码| 欧美精品123区| 国产精品无码永久免费888| 亚洲一区二区欧美| 国内成人免费视频| 日本韩国一区二区三区| 欧美精品一区二| 亚洲一区av在线| 粉嫩绯色av一区二区在线观看| 91精品婷婷国产综合久久竹菊| 欧美国产视频在线| 免费的成人av| 91成人网在线| 国产婷婷色一区二区三区 | 国产精品伦理在线| 日韩电影免费一区| 一本大道久久a久久精二百| 欧美xxxxx牲另类人与| 亚洲国产中文字幕| kk眼镜猥琐国模调教系列一区二区| 日韩午夜电影在线观看| 亚洲乱码日产精品bd| 国产不卡免费视频| 日韩视频免费观看高清完整版在线观看 | 亚洲第一福利一区| 成人毛片在线观看| 久久久亚洲精品石原莉奈| 亚洲成人1区2区| 95精品视频在线| 国产日韩av一区| 国产一区二区三区久久悠悠色av| 这里只有精品视频在线观看| 亚洲国产一区二区在线播放| 一道本成人在线| 亚洲欧洲av另类| 成人av网站在线| 欧美高清在线一区二区| 国内精品久久久久影院色| 日韩欧美国产一区在线观看| 日韩国产一区二| 91精品国产麻豆国产自产在线| 亚洲国产精品一区二区www在线 | 国产99久久久精品| 久久综合久久综合久久综合| 久久国产精品99精品国产| 7777精品伊人久久久大香线蕉完整版|