Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Linux

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11-04-2019, 06:01 AM   #1
Human being with feelings
Join Date: Nov 2017
Location: Heidelberg, Germany
Posts: 784
Default GDK Warning: gdk_window_set_user_time called on non-toplevel [solved]

Just for information, in case someone notice the same.

That warning was bugging me for a while, in attempt to build Linux iPlug2. After digging deeper, it happens that is a bug in (probably older) Gdk. And it appears every time REAPER FX window with foreign plug-ins is closed.

SWELL can create "foreign" GDK X11 window, and since I get exactly the same warning without REAPER, I guess FX window is using that feature.

The problem is that "foreign" window is not top, but for some reason WM_DELETE_WINDOW is delivered for it. I guess Gdk just set the same properties as for top windows (I have not checked that yet, but event is not delivered to self created X window), so WM delivers that event. Gdk is confused receiving it and print the warning.

In newer GDK that section is rewritten.

Edit: Gdk does that on purpose... in gdk_x11_window_destroy_foreign it sends WM_DELETE_WINDOW explicitly, after reparent to root window. I guess they reparent incorrectly, so it is still not "top window" from Gdk perspective.

Edit: it seems like SWELL way for foreign windows has some logical problems (I have found only very old conversation about this topic, but it seems like Gdk code is still the same). I am going to dig deeper.

Edit: no, SWELL problem... Will describe in the Bug Reports

Edit: fixed in SWELL and so in the next REAPER release.

Last edited by azslow3; 11-13-2019 at 01:59 PM.
azslow3 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 07:32 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.