Fix dock support.
This commit is contained in:
@ -130,7 +130,7 @@ AC_ARG_ENABLE(x-dock,
|
|||||||
enable_x_dock=yes)
|
enable_x_dock=yes)
|
||||||
|
|
||||||
if test x$enable_x_dock = xyes; then
|
if test x$enable_x_dock = xyes; then
|
||||||
PKG_CHECK_MODULES([XDOCK], [x], , enable_x_dock=no)
|
PKG_CHECK_MODULES([XDOCK], [x11], , enable_x_dock=no)
|
||||||
if test x$enable_x_dock = xyes; then
|
if test x$enable_x_dock = xyes; then
|
||||||
AC_DEFINE([HAVE_XDOCK], [1], [Define if X dock is found])
|
AC_DEFINE([HAVE_XDOCK], [1], [Define if X dock is found])
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -211,16 +211,7 @@ on_realize_set_dock (GtkWidget *widget,
|
|||||||
long vals[12];
|
long vals[12];
|
||||||
|
|
||||||
/* set window type to dock */
|
/* set window type to dock */
|
||||||
atoms[0] = XInternAtom (GDK_WINDOW_XDISPLAY (window),
|
gdk_window_set_type_hint (window, GDK_WINDOW_TYPE_HINT_DOCK);
|
||||||
"_NET_WM_WINDOW_TYPE_DOCK", False);
|
|
||||||
|
|
||||||
XChangeProperty (GDK_WINDOW_XDISPLAY (window),
|
|
||||||
GDK_WINDOW_XID (window),
|
|
||||||
XInternAtom (GDK_WINDOW_XDISPLAY (window),
|
|
||||||
"_NET_WM_WINDOW_TYPE", False),
|
|
||||||
XA_ATOM, 32, PropModeReplace,
|
|
||||||
(guchar *)atoms,
|
|
||||||
1);
|
|
||||||
|
|
||||||
/* set bottom strut */
|
/* set bottom strut */
|
||||||
#if GTK_CHECK_VERSION(3,0,0)
|
#if GTK_CHECK_VERSION(3,0,0)
|
||||||
|
|||||||
Reference in New Issue
Block a user