diff options
author | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2006-06-25 09:06:45 +0000 |
---|---|---|
committer | Olivier Fourdan <fourdan.olivier@wanadoo.fr> | 2006-06-25 09:06:45 +0000 |
commit | fe499c9bd47aad759418f639ed97df9abfc86692 (patch) | |
tree | da157824f3f5f83ec1af1cefa02fc7ae7a2ae175 /src/misc.c | |
parent | 6af32625e4e7d0661298c080d6c33f77d86380d4 (diff) | |
download | xfwm4-fe499c9bd47aad759418f639ed97df9abfc86692.tar.gz |
Change to maintain and use our own copy of the screen size, code cleanup.
(Old svn revision: 22198)
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/misc.c b/src/misc.c index 87c4f71e1..515b2bffa 100644 --- a/src/misc.c +++ b/src/misc.c @@ -185,24 +185,24 @@ placeSidewalks(ScreenInfo *screen_info, gboolean activate) /*left*/ xfwmWindowShow (&screen_info->sidewalk[0], 0, 0, - 1, gdk_screen_get_height (screen_info->gscr), FALSE); + 1, screen_info->height, FALSE); /*right*/ xfwmWindowShow (&screen_info->sidewalk[1], - gdk_screen_get_width (screen_info->gscr) - 1, 0, - 1, gdk_screen_get_height (screen_info->gscr), FALSE); + screen_info->width - 1, 0, + 1, screen_info->height, FALSE); } else /* Place the windows off screen */ { /*left*/ xfwmWindowShow (&screen_info->sidewalk[0], -1, 0, - 1, gdk_screen_get_height (screen_info->gscr), FALSE); + 1, screen_info->height, FALSE); /*right*/ xfwmWindowShow (&screen_info->sidewalk[1], - gdk_screen_get_width (screen_info->gscr), 0, - 1, gdk_screen_get_height (screen_info->gscr), FALSE); + screen_info->width, 0, + 1, screen_info->height, FALSE); } if ((activate) && (l.rows > 1)) @@ -210,24 +210,24 @@ placeSidewalks(ScreenInfo *screen_info, gboolean activate) /*top*/ xfwmWindowShow (&screen_info->sidewalk[2], 0, 0, - gdk_screen_get_width (screen_info->gscr), 1, FALSE); + screen_info->width, 1, FALSE); /*bottom*/ xfwmWindowShow (&screen_info->sidewalk[3], - 0, gdk_screen_get_height (screen_info->gscr) - 1, - gdk_screen_get_width (screen_info->gscr), 1, FALSE); + 0, screen_info->height - 1, + screen_info->width, 1, FALSE); } else /* Place the windows off screen */ { /*top*/ xfwmWindowShow (&screen_info->sidewalk[2], 0, -1, - gdk_screen_get_width (screen_info->gscr), 1, FALSE); + screen_info->width, 1, FALSE); /*bottom*/ xfwmWindowShow (&screen_info->sidewalk[3], - 0, gdk_screen_get_height (screen_info->gscr), - gdk_screen_get_width (screen_info->gscr), 1, FALSE); + 0, screen_info->height, + screen_info->width, 1, FALSE); } } |