]> Pileus Git - ~andy/gtk/blobdiff - gdk/x11/gdkwindow-x11.h
Change FSF Address
[~andy/gtk] / gdk / x11 / gdkwindow-x11.h
index 0c02b67652302086fe16f8bbba218121387c9402..53a5c1a159b08c5df7d4b108a8125d67a7625203 100644 (file)
@@ -12,9 +12,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 /*
@@ -30,6 +28,8 @@
 #include "gdk/x11/gdkprivate-x11.h"
 #include "gdk/gdkwindowimpl.h"
 
+#include <X11/Xlib.h>
+
 #ifdef HAVE_XDAMAGE
 #include <X11/extensions/Xdamage.h>
 #endif
@@ -69,11 +69,11 @@ struct _GdkWindowImplX11
   GHashTable *device_cursor;
 
   gint8 toplevel_window_type;
-  guint no_bg : 1;             /* Set when the window background is temporarily
-                                * unset during resizing and scaling */
+  guint no_bg : 1;        /* Set when the window background is temporarily
+                           * unset during resizing and scaling */
   guint override_redirect : 1;
   guint use_synchronized_configure : 1;
-  
+
   cairo_surface_t *cairo_surface;
 
 #if defined (HAVE_XCOMPOSITE) && defined(HAVE_XDAMAGE) && defined (HAVE_XFIXES)
@@ -121,6 +121,10 @@ struct _GdkToplevelX11
   guint have_fullscreen : 1;    /* _NET_WM_STATE_FULLSCREEN */
 
   guint is_leader : 1;
+
+  /* Set if the WM is presenting us as focused, i.e. with active decorations
+   */
+  guint have_focused : 1;
   
   gulong map_serial;   /* Serial of last transition from unmapped */
   
@@ -161,9 +165,6 @@ void            _gdk_x11_window_tmp_unset_parent_bg (GdkWindow *window);
 void            _gdk_x11_window_tmp_reset_parent_bg (GdkWindow *window);
 
 GdkCursor      *_gdk_x11_window_get_cursor          (GdkWindow *window);
-void            _gdk_x11_window_get_offsets         (GdkWindow *window,
-                                                     gint      *x_offset,
-                                                     gint      *y_offset);
 
 void            _gdk_x11_window_update_size         (GdkWindowImplX11 *impl);