2002-03-27 23:44:41 +00:00
|
|
|
/* Generic header info common to X backends for GNUstep
|
|
|
|
|
|
|
|
Copyright (C) 2000 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
|
|
|
Date: Mar 2000
|
|
|
|
|
|
|
|
This file is part of the GNUstep project
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library 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
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
2006-09-06 11:29:32 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02111 USA.
|
2002-03-27 23:44:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef INCLUDED_XGGENERIC_H
|
|
|
|
#define INCLUDED_XGGENERIC_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Flags to indicate which protocols the WindowManager follows
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
XGWM_UNKNOWN = 0,
|
|
|
|
XGWM_WINDOWMAKER = 1,
|
|
|
|
XGWM_GNOME = 2,
|
|
|
|
XGWM_KDE = 4,
|
|
|
|
XGWM_EWMH = 8
|
|
|
|
} XGWMProtocols;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
Atom win_type_atom;
|
|
|
|
Atom win_desktop_atom;
|
|
|
|
Atom win_normal_atom;
|
|
|
|
Atom win_floating_atom;
|
|
|
|
Atom win_menu_atom;
|
|
|
|
Atom win_dock_atom;
|
|
|
|
Atom win_modal_atom;
|
2003-07-05 23:49:59 +00:00
|
|
|
Atom win_utility_atom;
|
|
|
|
Atom win_splash_atom;
|
|
|
|
Atom win_override_atom;
|
|
|
|
Atom win_topmenu_atom;
|
2002-03-27 23:44:41 +00:00
|
|
|
} XGWMWinTypes;
|
|
|
|
|
2006-09-06 11:29:32 +00:00
|
|
|
/*
|
|
|
|
* Frame offsets for window inside parent decoration window.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
short l; // offset from left
|
|
|
|
short r; // offset from right
|
|
|
|
short t; // offset from top
|
|
|
|
short b; // offset from bottom
|
2006-09-25 13:49:32 +00:00
|
|
|
BOOL known; // obtained from Reparent event or just guessed?
|
2006-09-06 11:29:32 +00:00
|
|
|
} Offsets;
|
|
|
|
|
2002-03-27 23:44:41 +00:00
|
|
|
/*
|
|
|
|
* Structure containing ivars that are common to all X backend contexts.
|
|
|
|
*/
|
|
|
|
struct XGGeneric {
|
|
|
|
int wm;
|
|
|
|
struct {
|
|
|
|
unsigned useWindowMakerIcons:1;
|
2002-04-02 03:43:41 +00:00
|
|
|
unsigned appOwnsMiniwindow:1;
|
2002-03-27 23:44:41 +00:00
|
|
|
unsigned doubleParentWindow:1;
|
|
|
|
} flags;
|
|
|
|
Time lastTime;
|
|
|
|
Time lastClick;
|
|
|
|
Window lastClickWindow;
|
|
|
|
int lastClickX;
|
|
|
|
int lastClickY;
|
|
|
|
Time lastMotion;
|
|
|
|
Atom protocols_atom;
|
|
|
|
Atom delete_win_atom;
|
|
|
|
Atom take_focus_atom;
|
2006-07-08 23:33:50 +00:00
|
|
|
Atom net_wm_ping_atom;
|
2002-03-27 23:44:41 +00:00
|
|
|
Atom miniaturize_atom;
|
|
|
|
Atom win_decor_atom;
|
|
|
|
Atom titlebar_state_atom;
|
|
|
|
char *rootName;
|
|
|
|
long currentFocusWindow;
|
|
|
|
long desiredFocusWindow;
|
2003-06-17 13:30:25 +00:00
|
|
|
unsigned long focusRequestNumber;
|
2002-03-27 23:44:41 +00:00
|
|
|
unsigned char lMouse;
|
|
|
|
unsigned char mMouse;
|
|
|
|
unsigned char rMouse;
|
|
|
|
unsigned char upMouse;
|
|
|
|
unsigned char downMouse;
|
|
|
|
int lMouseMask;
|
|
|
|
int mMouseMask;
|
|
|
|
int rMouseMask;
|
|
|
|
Window appRootWindow;
|
|
|
|
void *cachedWindow; // last gswindow_device_t used.
|
2006-09-06 11:29:32 +00:00
|
|
|
Offsets offsets[16];
|
2002-03-27 23:44:41 +00:00
|
|
|
XGWMWinTypes wintypes;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* GNOME Window layers */
|
|
|
|
#define WIN_LAYER_DESKTOP 0
|
|
|
|
#define WIN_LAYER_BELOW 2
|
|
|
|
#define WIN_LAYER_NORMAL 4
|
|
|
|
#define WIN_LAYER_ONTOP 6
|
|
|
|
#define WIN_LAYER_DOCK 8
|
|
|
|
#define WIN_LAYER_ABOVE_DOCK 10
|
|
|
|
#define WIN_LAYER_MENU 12
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|