1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Revert "Fix the sliding window problem in linux occur due to reparenting of the window during the decoration via tracking the parent of the window"

This reverts commit 932afc3bf5.
This commit is contained in:
Haoyu Qiu
2025-10-13 14:57:28 +08:00
parent 4219ce91f2
commit 7680190768
2 changed files with 0 additions and 14 deletions

View File

@@ -4452,17 +4452,6 @@ void DisplayServerX11::_window_changed(XEvent *event) {
return;
}
// Readjusting the window position if the window is being reparented by the window manager for decoration
Window root, parent, *children;
unsigned int nchildren;
if (XQueryTree(x11_display, wd.x11_window, &root, &parent, &children, &nchildren) && wd.parent != parent) {
wd.parent = parent;
if (!wd.embed_parent) {
window_set_position(wd.position, window_id);
}
}
XFree(children);
{
//the position in xconfigure is not useful here, obtain it manually
int x = 0, y = 0;
@@ -6447,8 +6436,6 @@ DisplayServerX11::WindowID DisplayServerX11::_create_window(WindowMode p_mode, V
{
wd.x11_window = XCreateWindow(x11_display, RootWindow(x11_display, visualInfo.screen), win_rect.position.x, win_rect.position.y, win_rect.size.width > 0 ? win_rect.size.width : 1, win_rect.size.height > 0 ? win_rect.size.height : 1, 0, visualInfo.depth, InputOutput, visualInfo.visual, valuemask, &windowAttributes);
wd.parent = RootWindow(x11_display, visualInfo.screen);
DEBUG_LOG_X11("CreateWindow window=%lu, parent: %lu \n", wd.x11_window, wd.parent);
if (p_parent_window) {

View File

@@ -164,7 +164,6 @@ class DisplayServerX11 : public DisplayServer {
struct WindowData {
Window x11_window;
Window x11_xim_window;
Window parent;
::XIC xic;
bool ime_active = false;
bool ime_in_progress = false;