call get_screen_bycoord() anyway

This commit is contained in:
Julien Danjou 2008-01-22 17:30:06 +01:00
parent ec7ab36814
commit 44aab9ff4b
1 changed files with 1 additions and 5 deletions

View File

@ -22,7 +22,6 @@
#include <stdio.h> #include <stdio.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/extensions/shape.h> #include <X11/extensions/shape.h>
#include <X11/extensions/Xinerama.h>
#include "client.h" #include "client.h"
#include "tag.h" #include "tag.h"
@ -418,10 +417,7 @@ client_resize(Client *c, Area geometry, Bool sizehints)
if(c->geometry.x != geometry.x || c->geometry.y != geometry.y if(c->geometry.x != geometry.x || c->geometry.y != geometry.y
|| c->geometry.width != geometry.width || c->geometry.height != geometry.height) || c->geometry.width != geometry.width || c->geometry.height != geometry.height)
{ {
if(XineramaIsActive(globalconf.display)) new_screen = get_screen_bycoord(geometry.x, geometry.y);
new_screen = get_screen_bycoord(geometry.x, geometry.y);
else
new_screen = c->screen;
c->geometry.x = wc.x = geometry.x; c->geometry.x = wc.x = geometry.x;
c->geometry.y = wc.y = geometry.y; c->geometry.y = wc.y = geometry.y;