Call client_resize instead of client_move after client_placecalc since the size
may also change. from Vadim Vygonets
This commit is contained in:
parent
4302c504a4
commit
d94ddf7b8f
@ -15,7 +15,7 @@
|
|||||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* $OpenBSD: client.c,v 1.233 2016/12/19 14:17:26 okan Exp $
|
* $OpenBSD: client.c,v 1.234 2017/02/06 18:10:28 okan Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -100,7 +100,7 @@ client_init(Window win, struct screen_ctx *sc, int active)
|
|||||||
|
|
||||||
if (wattr.map_state != IsViewable) {
|
if (wattr.map_state != IsViewable) {
|
||||||
client_placecalc(cc);
|
client_placecalc(cc);
|
||||||
client_move(cc);
|
client_resize(cc, 0);
|
||||||
if ((cc->wmh) && (cc->wmh->flags & StateHint))
|
if ((cc->wmh) && (cc->wmh->flags & StateHint))
|
||||||
client_set_wm_state(cc, cc->wmh->initial_state);
|
client_set_wm_state(cc, cc->wmh->initial_state);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user