useless feature
This commit is contained in:
parent
8a13517714
commit
33a2b885b5
|
@ -297,11 +297,17 @@ void Platform::poll()
|
|||
switch(event.type) {
|
||||
case ConfigureNotify:
|
||||
// window resize
|
||||
if(x11.width != event.xconfigure.width || x11.height != event.xconfigure.height) {
|
||||
static int oldWidth = -1;
|
||||
static int oldHeight = -1;
|
||||
if(oldWidth != event.xconfigure.width || oldHeight != event.xconfigure.height) {
|
||||
g_engine.onResize(event.xconfigure.width, event.xconfigure.height);
|
||||
oldWidth = event.xconfigure.width;
|
||||
oldHeight = event.xconfigure.height;
|
||||
}
|
||||
|
||||
if(!isWindowMaximized()) {
|
||||
x11.width = event.xconfigure.width;
|
||||
x11.height = event.xconfigure.height;
|
||||
g_engine.onResize(x11.width, x11.height);
|
||||
}
|
||||
|
||||
// hack to fix x11 windows move gaps
|
||||
static int gap_x = -1, gap_y = -1;
|
||||
|
@ -311,6 +317,7 @@ void Platform::poll()
|
|||
}
|
||||
x11.x = event.xconfigure.x - gap_x;
|
||||
x11.y = event.xconfigure.y - gap_y;
|
||||
}
|
||||
break;
|
||||
|
||||
case KeyPress:
|
||||
|
|
Loading…
Reference in New Issue