Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有包含套接字的子窗口的窗口。我需要检测键盘焦点何时从父窗口中的小部件变为插件窗口中的小部件。
一旦鼠标进入插件窗口直到它离开,我就没有收到任何 gdk 事件。我在子窗口和插件窗口上尝试过g_signal_connect,focus-in-event我没有收到任何回调,大概是因为它们本身没有键盘焦点。
g_signal_connect
focus-in-event
有没有办法通知这个焦点变化?