<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hello,<br></div><div><br></div><div>I have an application that reads some Xresources file configs to update its theme.<br></div><div><br></div><div>So i use XOpenDisplay, XResourceManagerString and XrmGetStringDatabase from libx11 to get the fields that i want.<br></div><div><br></div><div>My problem is when the user update the Xresources file then run `xrdb ~/.Xresources` my version of the database is not updated, and i dont know how to detect such an event.<br></div><div><br></div><div>I can retrieve the theme for example every 10 seconds but that is too much. Is there a way or a blocking function I can use to detect if the SCREEN_RESOURCES property for a screen has been updated so that i can retrieve it and update the application theme?<br></div><div><br></div><div>I'm not very knowledgeable about C or X11 in general but I'm trying my best to learn, couldn't find what i want in the documentation.<br></div><div><br></div><div>If someone knows the direction i should be looking for I will really appreciate it.<br></div><div><br></div><div>Thanks.<br></div></body></html>