2014-03-18 15:20:22 +00:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2001 Havoc Pennington, Anders Carlsson
|
|
|
|
* Copyright (C) 2002, 2003 Red Hat, Inc.
|
|
|
|
* Copyright (C) 2003 Rob Adams
|
|
|
|
* Copyright (C) 2004-2006 Elijah Newren
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_WINDOW_X11_PRIVATE_H
|
|
|
|
#define META_WINDOW_X11_PRIVATE_H
|
|
|
|
|
2018-07-10 08:36:24 +00:00
|
|
|
#include "core/window-private.h"
|
2014-07-14 16:01:22 +00:00
|
|
|
#include "x11/iconcache.h"
|
2014-06-04 13:53:29 +00:00
|
|
|
|
2014-03-18 15:20:22 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _MetaWindowX11Private MetaWindowX11Private;
|
|
|
|
|
2017-08-30 07:17:41 +00:00
|
|
|
struct _MetaWindowX11Class
|
|
|
|
{
|
|
|
|
MetaWindowClass parent_class;
|
|
|
|
};
|
|
|
|
|
2014-03-18 15:20:22 +00:00
|
|
|
struct _MetaWindowX11
|
|
|
|
{
|
|
|
|
MetaWindow parent;
|
|
|
|
|
|
|
|
MetaWindowX11Private *priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _MetaWindowX11Private
|
|
|
|
{
|
|
|
|
/* TRUE if the client forced these on */
|
|
|
|
guint wm_state_skip_taskbar : 1;
|
|
|
|
guint wm_state_skip_pager : 1;
|
2019-01-30 19:19:41 +00:00
|
|
|
guint wm_take_focus : 1;
|
2019-01-30 19:41:11 +00:00
|
|
|
guint wm_ping : 1;
|
2019-01-30 19:40:17 +00:00
|
|
|
guint wm_delete_window : 1;
|
2014-03-18 17:07:50 +00:00
|
|
|
|
|
|
|
/* Weird "_NET_WM_STATE_MODAL" flag */
|
|
|
|
guint wm_state_modal : 1;
|
|
|
|
|
|
|
|
/* Info on which props we got our attributes from */
|
|
|
|
guint using_net_wm_name : 1; /* vs. plain wm_name */
|
|
|
|
guint using_net_wm_visible_name : 1; /* tracked so we can clear it */
|
2014-03-19 01:15:49 +00:00
|
|
|
|
|
|
|
Atom type_atom;
|
2014-04-29 19:55:55 +00:00
|
|
|
|
2014-05-20 13:19:10 +00:00
|
|
|
/* Requested geometry */
|
|
|
|
int border_width;
|
|
|
|
|
2014-12-30 01:20:07 +00:00
|
|
|
gboolean showing_resize_popup;
|
2014-05-20 21:47:10 +00:00
|
|
|
|
|
|
|
/* These are in server coordinates. If we have a frame, it's
|
|
|
|
* relative to the frame. */
|
|
|
|
MetaRectangle client_rect;
|
2014-07-14 16:01:22 +00:00
|
|
|
|
|
|
|
MetaIconCache icon_cache;
|
|
|
|
Pixmap wm_hints_pixmap;
|
|
|
|
Pixmap wm_hints_mask;
|
2014-03-18 15:20:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif
|