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

Remove debug code

It looks like the ChromeOS WM is resizeing the window. :(
parent c5fa2af2
No related branches found
No related tags found
No related merge requests found
Pipeline #7889 passed
......@@ -1183,9 +1183,6 @@ send_fullscreen(bool set, int x, int y)
return ret;
}
#ifndef NDEBUG
static bool shownext = false;
#endif
/* Resize the window. This function is called after a mode change. */
// It's also called after scaling is changed!
static void resize_window()
......@@ -1237,10 +1234,6 @@ static void resize_window()
map_window(map_pending);
rwlock_wrlock(&vstatlock);
x11.XResizeWindow(dpy, win, width, height);
#ifndef NDEBUG
fprintf(stderr, "Attempting to resize window to %dx%d\n", width, height);
shownext = true;
#endif
x_cvstat.winwidth = vstat.winwidth = width;
x_cvstat.winheight = vstat.winheight = height;
vstat.scaling = x_cvstat.scaling = bitmap_double_mult_inside(width, height);
......@@ -1798,11 +1791,6 @@ x11_event(XEvent *ev)
* value.
*/
if (ev->xconfigure.window == win) {
#ifndef NDEBUG
if (shownext || ev->xconfigure.width != x_cvstat.winwidth || ev->xconfigure.height != x_cvstat.winheight)
fprintf(stderr, "ConfigureNotify of %dx%d\n", ev->xconfigure.width, ev->xconfigure.height);
shownext = false;
#endif
if (map_pending) {
pending_width = ev->xconfigure.width;
pending_height = ev->xconfigure.height;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment