x11 resize

  1. 口大小改变消息处理
    		case ConfigureNotify:
    			if (width != ev.xconfigure.width || height != ev.xconfigure.height)
    			{
    				width = ev.xconfigure.width;
    				height = ev.xconfigure.height;
    				printf("Size changed to: %d by %d\n", width, height);
    			}
    			break;
    
    这里 ConfigureNotify 过滤窗口修改事件。

猜你喜欢

转载自blog.csdn.net/u012939880/article/details/108191190