Ashley Mills schrieb: > Whilst I suspect it depends on the window manager, under XFCE 4.8 on > Arch Linux, the following code will grab focus even when the > application in question is not currently active: > > window.show() > > i.e the process is bought to the foreground, which is what I want
> Obviously this is very simple and convenient for me, and I was able > to program the application in a few hours. However, on Windows Vista > and Windows 7, focus stealing is banned without permission from the > current foreground process. As described in this rather militant > post: LOL, Windows is nothing to "have fun", but to get violent. Try this: window.hide(); Fl::check(); window.show(); This will bring your window to top for sure, but it will loose it's position. Appending window.position(x,y) directly doesn't work, but using a timer does the job. "hate windows" 11.100.000 hits by google. ;o) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

