how to define window stacking order?

后端 未结 2 1184
遥遥无期
遥遥无期 2021-01-22 09:12

I\'m trying to write my own window manager. One issue I faced is that I don\'t understand how to define in which order windows should be displayed. The only means I found is to

2条回答
  •  日久生厌
    2021-01-22 09:58

    It is the responsibility of the window manager to order the windows. A window gives hints about which type it is (popup dialog, menu window, splashscreen, toolbox, etc), the window manager then decides how to display this on the screen. This includes keeping track of the order and deciding which gets priority.

    There is a X11 call to change the order (XRestackWindows), but I don't know the Xcb equivalent.

提交回复
热议问题