X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gdk%2Fx11%2Fgdkwindow-x11.h;h=3dde77767d6e2874d4592e1813c631bb38a0e1a2;hb=232314d0fdc55ba39914317e7c4bbb49fd49ea25;hp=f0292ecfcdfd81cf9f9460c96bc3cf3cb1016dc7;hpb=bb795066657c0585d3307dc57e0eddedb0295292;p=~andy%2Fgtk
diff --git a/gdk/x11/gdkwindow-x11.h b/gdk/x11/gdkwindow-x11.h
index f0292ecfc..3dde77767 100644
--- a/gdk/x11/gdkwindow-x11.h
+++ b/gdk/x11/gdkwindow-x11.h
@@ -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 .
*/
/*
@@ -27,13 +25,17 @@
#ifndef __GDK_WINDOW_X11_H__
#define __GDK_WINDOW_X11_H__
-#include
+#include "gdk/x11/gdkprivate-x11.h"
+#include "gdk/gdkwindowimpl.h"
+
+#include
#ifdef HAVE_XDAMAGE
#include
#endif
#ifdef HAVE_XSYNC
+#include
#include
#endif
@@ -56,9 +58,9 @@ typedef struct _GdkXPositionInfo GdkXPositionInfo;
struct _GdkWindowImplX11
{
- GdkDrawableImplX11 parent_instance;
+ GdkWindowImpl parent_instance;
- GdkDrawable *wrapper;
+ GdkWindow *wrapper;
Window xid;
@@ -67,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)
@@ -81,7 +83,7 @@ struct _GdkWindowImplX11
struct _GdkWindowImplX11Class
{
- GdkDrawableImplX11Class parent_class;
+ GdkWindowImplClass parent_class;
};
struct _GdkToplevelX11
@@ -117,8 +119,13 @@ struct _GdkToplevelX11
guint have_maxvert : 1; /* _NET_WM_STATE_MAXIMIZED_VERT */
guint have_maxhorz : 1; /* _NET_WM_STATE_MAXIMIZED_HORZ */
guint have_fullscreen : 1; /* _NET_WM_STATE_FULLSCREEN */
+ guint have_hidden : 1; /* _NET_WM_STATE_HIDDEN */
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 */
@@ -158,10 +165,9 @@ void _gdk_x11_window_tmp_reset_bg (GdkWindow *window,
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);
+GdkCursor *_gdk_x11_window_get_cursor (GdkWindow *window);
+
+void _gdk_x11_window_update_size (GdkWindowImplX11 *impl);
G_END_DECLS