Skip to content
Snippets Groups Projects
Commit 0748cc1e 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 5c1dd9fd
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2242 passed
...@@ -711,10 +711,11 @@ static int x11_event(XEvent *ev) ...@@ -711,10 +711,11 @@ static int x11_event(XEvent *ev)
case ConfigureNotify: { case ConfigureNotify: {
int width, height; int width, height;
if (x11_window_xpos != ev->xconfigure.x || x11_window_ypos != ev->xconfigure.y 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) {
x11_window_xpos=ev->xconfigure.x; x11_window_xpos=ev->xconfigure.x;
x11_window_ypos=ev->xconfigure.y; 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_width=ev->xconfigure.width;
x11_window_height=ev->xconfigure.height; x11_window_height=ev->xconfigure.height;
handle_resize_event(ev->xconfigure.width, 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