diff options
author | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2004-05-13 21:43:52 +0000 |
---|---|---|
committer | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2004-05-13 21:43:52 +0000 |
commit | ca7e943e7294bdb6e4c8f86ebeaf03ac19ef8b8b (patch) | |
tree | c567860239a4497b5c3810906f140c5d8790bead /src/misc.c | |
parent | cfe94f82e2f1134d307ab8b1de264ef4420e450d (diff) | |
download | xfwm4-ca7e943e7294bdb6e4c8f86ebeaf03ac19ef8b8b.tar.gz |
Get rid of out own Xinerama impl. and use GdkScreen routines instead (that fixes at least two issues I can see ,the requirement to have Xienrama enabled in libxfcegui4 to get support for in in xfwm4, and as a side effect, xfwm4 is now compatible with SUN Xinerama which is slightly different from XFree Xinierama)
Add a new theme, from my numerous attempts to deign a default xfwm4 theme for 4.2
Remove the theme "synthetic" that sould be moved to xfwm4-themes package
(Old svn revision: 11752)
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/misc.c b/src/misc.c index 772067904..0586edc22 100644 --- a/src/misc.c +++ b/src/misc.c @@ -22,17 +22,13 @@ #include <config.h> #endif -#ifdef GDK_MULTIHEAD_SAFE -#undef GDK_MULTIHEAD_SAFE -#endif - +#include <X11/Xlib.h> +#include <X11/Xutil.h> +#include <X11/Xmd.h> #include <glib.h> #include <gtk/gtk.h> #include <gdk/gdk.h> #include <gdk/gdkx.h> -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#include <X11/Xmd.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> @@ -205,19 +201,19 @@ placeSidewalks(gboolean activate) { XMoveResizeWindow(dpy, sidewalk[0], 0, 0, - 1, MyDisplayFullHeight (dpy, screen)); + 1, gdk_screen_get_height (gscr)); XMoveResizeWindow(dpy, sidewalk[1], - MyDisplayFullWidth (dpy, screen) - 1, 0, - 1, MyDisplayFullHeight (dpy, screen)); + gdk_screen_get_width (gscr) - 1, 0, + 1, gdk_screen_get_height (gscr)); } else { /* Place the windows off screen */ XMoveResizeWindow(dpy, sidewalk[0], -1, 0, - 1, MyDisplayFullHeight (dpy, screen)); + 1, gdk_screen_get_height (gscr)); XMoveResizeWindow(dpy, sidewalk[1], - MyDisplayFullWidth (dpy, screen), 0, - 1, MyDisplayFullHeight (dpy, screen)); + gdk_screen_get_width (gscr), 0, + 1, gdk_screen_get_height (gscr)); } } |