示例#1
0
文件: ewmhints.c 项目: GYGit/reactos
int
ewmh_set_window_modal(RDPCLIENT * This, Window wnd)
{
	if (ewmh_modify_state(This, wnd, 1, This->ewmhints.state_modal_atom, 0) < 0)
		return -1;
	return 0;
}
示例#2
0
int
ewmh_set_window_above(Window wnd)
{
	if (ewmh_modify_state(wnd, 1, g_net_wm_state_above_atom, 0) < 0)
		return -1;
	return 0;
}
示例#3
0
文件: ewmhints.c 项目: GYGit/reactos
int
ewmh_set_window_popup(RDPCLIENT * This, Window wnd)
{
	if (ewmh_modify_state
	    (This, wnd, 1, This->ewmhints.state_skip_taskbar_atom, This->ewmhints.state_skip_pager_atom) < 0)
		return -1;
	return 0;
}
示例#4
0
int
ewmh_set_window_popup(Window wnd)
{
	if (ewmh_modify_state
	    (wnd, 1, g_net_wm_state_skip_taskbar_atom, g_net_wm_state_skip_pager_atom) < 0)
		return -1;
	return 0;
}
示例#5
0
文件: ewmhints.c 项目: GYGit/reactos
/*
   Set the window state: normal/minimized/maximized.
   Returns -1 on failure.
*/
int
ewmh_change_state(RDPCLIENT * This, Window wnd, int state)
{
	/*
	 * Deal with the max atoms
	 */
	if (state == SEAMLESSRDP_MAXIMIZED)
	{
		if (ewmh_modify_state
		    (This, wnd, 1, This->ewmhints.state_maximized_vert_atom,
		     This->ewmhints.state_maximized_horz_atom) < 0)
			return -1;
	}
	else
	{
		if (ewmh_modify_state
		    (This, wnd, 0, This->ewmhints.state_maximized_vert_atom,
		     This->ewmhints.state_maximized_horz_atom) < 0)
			return -1;
	}

	return 0;
}
示例#6
0
/* 
   Set the window state: normal/minimized/maximized. 
   Returns -1 on failure. 
*/
int
ewmh_change_state(Window wnd, int state)
{
	/*
	 * Deal with the max atoms
	 */
	if (state == SEAMLESSRDP_MAXIMIZED)
	{
		if (ewmh_modify_state
		    (wnd, 1, g_net_wm_state_maximized_vert_atom,
		     g_net_wm_state_maximized_horz_atom) < 0)
			return -1;
	}
	else
	{
		if (ewmh_modify_state
		    (wnd, 0, g_net_wm_state_maximized_vert_atom,
		     g_net_wm_state_maximized_horz_atom) < 0)
			return -1;
	}

	return 0;
}