2006-10-01 18:30:10 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
2008-05-30 18:27:43 -04:00
|
|
|
/**
|
2011-11-02 11:34:45 -04:00
|
|
|
* SECTION:window-props
|
|
|
|
* @short_description: MetaWindow property handling
|
2008-05-30 18:27:43 -04:00
|
|
|
*
|
|
|
|
* A system which can inspect sets of properties of given windows
|
|
|
|
* and take appropriate action given their values.
|
|
|
|
*
|
|
|
|
* Note that all the meta_window_reload_propert* functions require a
|
|
|
|
* round trip to the server.
|
|
|
|
*/
|
2002-11-03 18:42:21 -05:00
|
|
|
|
2014-05-02 09:34:02 -04:00
|
|
|
/*
|
2002-11-03 18:42:21 -05:00
|
|
|
* Copyright (C) 2001, 2002 Red Hat, Inc.
|
2014-05-02 09:34:02 -04:00
|
|
|
*
|
2002-11-03 18:42:21 -05: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.
|
2014-05-02 09:34:02 -04:00
|
|
|
*
|
2002-11-03 18:42:21 -05:00
|
|
|
* You should have received a copy of the GNU General Public License
|
2014-01-11 20:42:06 -05:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2002-11-03 18:42:21 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_WINDOW_PROPS_H
|
|
|
|
#define META_WINDOW_PROPS_H
|
|
|
|
|
2008-05-18 20:00:09 -04:00
|
|
|
#include "window-private.h"
|
2002-11-03 18:42:21 -05:00
|
|
|
|
2008-05-30 18:27:43 -04:00
|
|
|
/**
|
2011-11-02 11:34:45 -04:00
|
|
|
* meta_window_reload_property_from_xwindow:
|
|
|
|
* @window: A window on the same display as the one we're
|
|
|
|
* investigating (only used to find the display)
|
|
|
|
* @xwindow: The X handle for the window.
|
|
|
|
* @property: A single X atom.
|
|
|
|
*
|
2008-05-30 18:30:20 -04:00
|
|
|
* Requests the current values of a single property for a given
|
|
|
|
* window from the server, and deals with it appropriately.
|
|
|
|
* Does not return it to the caller (it's been dealt with!)
|
2008-05-30 18:27:43 -04:00
|
|
|
*/
|
2009-06-28 18:32:27 -04:00
|
|
|
void meta_window_reload_property_from_xwindow (MetaWindow *window,
|
|
|
|
Window xwindow,
|
|
|
|
Atom property,
|
|
|
|
gboolean initial);
|
2002-11-03 18:42:21 -05:00
|
|
|
|
2009-06-14 08:37:57 -04:00
|
|
|
/**
|
2011-11-02 11:34:45 -04:00
|
|
|
* meta_window_load_initial_properties:
|
|
|
|
* @window: The window.
|
|
|
|
*
|
2009-06-14 08:37:57 -04:00
|
|
|
* Requests the current values for standard properties for a given
|
|
|
|
* window from the server, and deals with them appropriately.
|
|
|
|
* Does not return them to the caller (they've been dealt with!)
|
|
|
|
*/
|
|
|
|
void meta_window_load_initial_properties (MetaWindow *window);
|
|
|
|
|
2008-05-30 18:27:43 -04:00
|
|
|
/**
|
2011-11-02 11:34:45 -04:00
|
|
|
* meta_display_init_window_prop_hooks:
|
|
|
|
* @display: The display.
|
|
|
|
*
|
2008-05-30 18:27:43 -04:00
|
|
|
* Initialises the hooks used for the reload_propert* functions
|
|
|
|
* on a particular display, and stores a pointer to them in the
|
|
|
|
* display.
|
|
|
|
*/
|
2002-11-03 18:42:21 -05:00
|
|
|
void meta_display_init_window_prop_hooks (MetaDisplay *display);
|
2008-05-30 18:27:43 -04:00
|
|
|
|
|
|
|
/**
|
2011-11-02 11:34:45 -04:00
|
|
|
* meta_display_free_window_prop_hooks:
|
|
|
|
* @display: The display.
|
2008-05-30 18:27:43 -04:00
|
|
|
* Frees the hooks used for the reload_propert* functions
|
|
|
|
* for a particular display.
|
|
|
|
*/
|
2002-11-03 18:42:21 -05:00
|
|
|
void meta_display_free_window_prop_hooks (MetaDisplay *display);
|
|
|
|
|
2008-05-30 18:27:43 -04:00
|
|
|
/**
|
2011-11-02 11:34:45 -04:00
|
|
|
* meta_set_normal_hints:
|
|
|
|
* @window: The window to set the size hints on.
|
|
|
|
* @hints: Either some X size hints, or NULL for default.
|
|
|
|
*
|
2008-05-30 18:27:43 -04:00
|
|
|
* Sets the size hints for a window. This happens when a
|
|
|
|
* WM_NORMAL_HINTS property is set on a window, but it is public
|
|
|
|
* because the size hints are set to defaults when a window is
|
|
|
|
* created. See
|
|
|
|
* http://tronche.com/gui/x/icccm/sec-4.html#WM_NORMAL_HINTS
|
|
|
|
* for the X details.
|
|
|
|
*/
|
2003-04-26 13:40:32 -04:00
|
|
|
void meta_set_normal_hints (MetaWindow *window,
|
|
|
|
XSizeHints *hints);
|
|
|
|
|
2002-11-03 18:42:21 -05:00
|
|
|
#endif /* META_WINDOW_PROPS_H */
|