I have two windows on my Xfce desktop that need to be open all the time and they are set to always on top. They overlap each other, whenever I click on one of them, that's expected behaviour.

Is possible somehow to give one of them a certain priority, so both of them stay always on top, but window 1 stays always over window 2?

  • Does it work if you set them to always on top sequentially? I mean is the one you set second always above the one you set first? Or is it random? – terdon Jul 8 '14 at 15:33
  • @terdon Yes, but when I click on one of them, it gets raised. I updated the question! – Teresa e Junior Jul 8 '14 at 15:37
  • 1
    I don't know if you can prioritize the windows, but you should be able to check if Window 1 is on the top of the stack and raise it. I don't think such a check is that costly (CPU wise) and could be done every 1-3 seconds, depending on the (for you) acceptable delay. – Anthon Jul 8 '14 at 15:43
  • @Anthon the other day I wrote a script with wmctrl that would raise the window every N seconds, and from what I can remember, there was some problem like the focus being stolen from text editors, or something like that. I'll try it again. – Teresa e Junior Jul 8 '14 at 15:50
  • @TeresaeJunior That might be the case, I haven't tried to do this, it would be the thing I would try. I haven't noticed wmctrl taking influencing the focus, but that might depend on the application. – Anthon Jul 8 '14 at 15:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.