Skip to content
Snippets Groups Projects
Commit 1dc4c22a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

No need to resize window just because it moved.

Fixes X11 window dragging blinkiness.
parent 22515dfa
No related branches found
No related tags found
No related merge requests found
......@@ -711,10 +711,11 @@ static int x11_event(XEvent *ev)
case ConfigureNotify: {
int width, height;
if (x11_window_xpos != ev->xconfigure.x || x11_window_ypos != ev->xconfigure.y
|| x11_window_width != ev->xconfigure.width || x11_window_height != ev->xconfigure.height) {
if (x11_window_xpos != ev->xconfigure.x || x11_window_ypos != ev->xconfigure.y) {
x11_window_xpos=ev->xconfigure.x;
x11_window_ypos=ev->xconfigure.y;
}
if (x11_window_width != ev->xconfigure.width || x11_window_height != ev->xconfigure.height) {
x11_window_width=ev->xconfigure.width;
x11_window_height=ev->xconfigure.height;
handle_resize_event(ev->xconfigure.width, ev->xconfigure.height);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment