/ minilibx-linux / mlx_int_anti_resize_win.c
mlx_int_anti_resize_win.c
1 /* 2 ** mlx_int_anti_resize_win.c for MiniLibX in 3 ** 4 ** Made by Charlie Root 5 ** Login <ol@epitech.net> 6 ** 7 ** Started on Tue Aug 8 14:31:05 2000 Charlie Root 8 ** Last update Tue Sep 25 15:56:58 2001 Charlie Root 9 */ 10 11 #include "mlx_int.h" 12 13 14 int mlx_int_anti_resize_win(t_xvar *xvar,Window win,int w,int h) 15 { 16 XSizeHints hints; 17 long toto; 18 19 XGetWMNormalHints(xvar->display,win,&hints,&toto); 20 hints.width = w; 21 hints.height = h; 22 hints.min_width = w; 23 hints.min_height = h; 24 hints.max_width = w; 25 hints.max_height = h; 26 hints.flags = PPosition | PSize | PMinSize | PMaxSize; 27 XSetWMNormalHints(xvar->display,win,&hints); 28 }