当前位置: 技术问答>linux和unix
请教又没有办法实现“Always on top”
来源: 互联网 发布时间:2015-04-17
本文导语: 请教又没有办法使用gdk(或其他开发环境都行)实现“Always on top”,就像windows下winamp“总在上面”的功能,别告诉我XMMS的"Always on top",它那 个功能不起作用。先谢过了。 | struct GdkEventVisibil...
请教又没有办法使用gdk(或其他开发环境都行)实现“Always on top”,就像windows下winamp“总在上面”的功能,别告诉我XMMS的"Always on top",它那
个功能不起作用。先谢过了。
个功能不起作用。先谢过了。
|
struct GdkEventVisibility {
GdkEventType type;
GdkWindow *window;
gint8 send_event;
GdkVisibilityState state;
};
Generated when the window visibility status has changed.
GdkEventType type the type of the event (GDK_VISIBILITY_NOTIFY).
GdkWindow *window the window which received the event.
gint8 send_event TRUE if the event was sent explicitly (e.g. using XSendEvent).
GdkVisibilityState state the new visibility state (GDK_VISIBILITY_FULLY_OBSCURED, GDK_VISIBILITY_PARTIAL or GDK_VISIBILITY_UNOBSCURED).
当窗口被遮盖时,会收到此事件。在事件处理函数里raise。
GdkEventType type;
GdkWindow *window;
gint8 send_event;
GdkVisibilityState state;
};
Generated when the window visibility status has changed.
GdkEventType type the type of the event (GDK_VISIBILITY_NOTIFY).
GdkWindow *window the window which received the event.
gint8 send_event TRUE if the event was sent explicitly (e.g. using XSendEvent).
GdkVisibilityState state the new visibility state (GDK_VISIBILITY_FULLY_OBSCURED, GDK_VISIBILITY_PARTIAL or GDK_VISIBILITY_UNOBSCURED).
当窗口被遮盖时,会收到此事件。在事件处理函数里raise。
|
试一下gtk_window_set_transient_for