QApplication x11EventFilter ( XEvent* e )
To copy to clipboard, switch view to plain text mode
function may do what you want. But this time you need to have a programming context about X11 functions. when your application's window lost focus then your window also gets an event.
you may chance to decide which events you can hook. possible focus lost event is most appropriate for you.
i tested this function when a window lost focus then XEvent's type member gets the value of 10.
//e->type == 10
//e->type == 10
To copy to clipboard, switch view to plain text mode
but unfortunately, i don't know how to make a window to be on top and visible over other windows.
raise(), setActiveWindow(), show() functions don't guaranty the visibility of the window. But blink effect appears on menu bar instead
Bookmarks