diff --git a/panda/src/glxdisplay/glxGraphicsWindow.cxx b/panda/src/glxdisplay/glxGraphicsWindow.cxx index 9916628f6a..8928b5b006 100644 --- a/panda/src/glxdisplay/glxGraphicsWindow.cxx +++ b/panda/src/glxdisplay/glxGraphicsWindow.cxx @@ -200,7 +200,7 @@ open_window() { if (!_properties.has_parent_window()) { root_window = glx_pipe->get_root(); } else { - root_window = (Window) (int) _properties.get_parent_window(); + root_window = (Window)_properties.get_parent_window(); } #ifdef HAVE_GLXFBCONFIG diff --git a/panda/src/tinydisplay/tinyXGraphicsWindow.cxx b/panda/src/tinydisplay/tinyXGraphicsWindow.cxx index 8749f71cf7..de69c651aa 100644 --- a/panda/src/tinydisplay/tinyXGraphicsWindow.cxx +++ b/panda/src/tinydisplay/tinyXGraphicsWindow.cxx @@ -515,7 +515,7 @@ open_window() { if (!_properties.has_parent_window()) { root_window = tinyx_pipe->get_root(); } else { - root_window = (Window) (int) _properties.get_parent_window(); + root_window = (Window)_properties.get_parent_window(); } setup_colormap(visual_info);