1998-09-29 22:36:29 +00:00
|
|
|
/*
|
1998-10-21 14:43:47 +00:00
|
|
|
* Window Maker window manager
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
2003-01-16 23:30:45 +00:00
|
|
|
* Copyright (c) 1997-2003 Alfredo K. Kojima
|
2004-10-12 21:28:27 +00:00
|
|
|
*
|
1998-09-29 22:36:29 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
2010-10-08 01:32:11 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
1998-09-29 22:36:29 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef WMACTIONS_H_
|
|
|
|
|
#define WMACTIONS_H_
|
|
|
|
|
|
|
|
|
|
#include "window.h"
|
|
|
|
|
|
2009-09-02 01:37:47 +02:00
|
|
|
#define MAX_HORIZONTAL (1 << 0)
|
|
|
|
|
#define MAX_VERTICAL (1 << 1)
|
|
|
|
|
#define MAX_LEFTHALF (1 << 2)
|
|
|
|
|
#define MAX_RIGHTHALF (1 << 3)
|
|
|
|
|
#define MAX_MAXIMUS (1 << 4)
|
|
|
|
|
#define MAX_IGNORE_XINERAMA (1 << 5)
|
|
|
|
|
#define MAX_KEYBOARD (1 << 6)
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2012-06-26 16:20:43 +01:00
|
|
|
#define SAVE_GEOMETRY_X (1 << 0)
|
|
|
|
|
#define SAVE_GEOMETRY_Y (1 << 1)
|
|
|
|
|
#define SAVE_GEOMETRY_WIDTH (1 << 2)
|
|
|
|
|
#define SAVE_GEOMETRY_HEIGHT (1 << 3)
|
|
|
|
|
#define SAVE_GEOMETRY_ALL SAVE_GEOMETRY_X | SAVE_GEOMETRY_Y | SAVE_GEOMETRY_WIDTH | SAVE_GEOMETRY_HEIGHT
|
|
|
|
|
|
1998-09-29 22:36:29 +00:00
|
|
|
void wSetFocusTo(WScreen *scr, WWindow *wwin);
|
|
|
|
|
|
|
|
|
|
int wMouseMoveWindow(WWindow *wwin, XEvent *ev);
|
1999-01-06 15:22:33 +00:00
|
|
|
int wKeyboardMoveResizeWindow(WWindow *wwin);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
|
|
|
|
void wMouseResizeWindow(WWindow *wwin, XEvent *ev);
|
|
|
|
|
|
|
|
|
|
void wShadeWindow(WWindow *wwin);
|
|
|
|
|
void wUnshadeWindow(WWindow *wwin);
|
|
|
|
|
|
|
|
|
|
void wIconifyWindow(WWindow *wwin);
|
|
|
|
|
void wDeiconifyWindow(WWindow *wwin);
|
|
|
|
|
|
|
|
|
|
void wSelectWindows(WScreen *scr, XEvent *ev);
|
1999-01-06 15:22:33 +00:00
|
|
|
|
1998-11-03 12:53:26 +00:00
|
|
|
void wSelectWindow(WWindow *wwin, Bool flag);
|
|
|
|
|
void wUnselectWindows(WScreen *scr);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
|
|
|
|
void wMaximizeWindow(WWindow *wwin, int directions);
|
|
|
|
|
void wUnmaximizeWindow(WWindow *wwin);
|
2012-05-04 17:30:01 +01:00
|
|
|
void handleMaximize(WWindow *wwin, int directions);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2010-09-10 20:51:05 +04:00
|
|
|
void wHideAll(WScreen *src);
|
1998-09-29 22:36:29 +00:00
|
|
|
void wHideOtherApplications(WWindow *wwin);
|
|
|
|
|
void wShowAllWindows(WScreen *scr);
|
|
|
|
|
|
|
|
|
|
void wHideApplication(WApplication *wapp);
|
2004-10-12 21:28:27 +00:00
|
|
|
void wUnhideApplication(WApplication *wapp, Bool miniwindows,
|
|
|
|
|
Bool bringToCurrentWS);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
|
|
|
|
void wRefreshDesktop(WScreen *scr);
|
|
|
|
|
|
|
|
|
|
void wArrangeIcons(WScreen *scr, Bool arrangeAll);
|
|
|
|
|
|
1998-11-03 12:53:26 +00:00
|
|
|
void wMakeWindowVisible(WWindow *wwin);
|
1998-09-29 22:36:29 +00:00
|
|
|
|
2004-10-12 01:34:32 +00:00
|
|
|
void wFullscreenWindow(WWindow *wwin);
|
|
|
|
|
void wUnfullscreenWindow(WWindow *wwin);
|
2009-10-10 19:13:02 +02:00
|
|
|
|
|
|
|
|
void animateResize(WScreen *scr, int x, int y, int w, int h, int fx, int fy, int fw, int fh);
|
2012-06-26 16:20:43 +01:00
|
|
|
void update_saved_geometry(WWindow *wwin);
|
2009-10-10 19:13:02 +02:00
|
|
|
|
1998-09-29 22:36:29 +00:00
|
|
|
#endif
|
2004-10-12 21:28:27 +00:00
|
|
|
|