xcb

Window position in Xlib

亡梦爱人 提交于 2019-12-03 16:51:14
How to get top-level window position relative to root window (i.e. whole screen) using plain ol' xlib (or brand new XCB)? The x,y components of the structure returned by XGetWindowAttributes are relative to the origin of the window's parent. That's not the same as relative to the top left of the screen. Calling XTranslateCoordinates passing the root window and 0,0 gives coordinates of the window relative to the screen. I found that if I write: int x, y; Window child; XWindowAttributes xwa; XTranslateCoordinates( display, window, root_window, 0, 0, &x, &y, &child ); XGetWindowAttributes(

how to define window stacking order?

随声附和 提交于 2019-12-02 06:00:45
问题 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 use xcb_configure_window . But it looks very limited to me: it only allows either to rise the window on top of all, or put it to the very bottom (no notion of layers or something). What a limited functionality :(. What I really would like to do is to define the window order and tell X about it. Or to define multiple

how to define window stacking order?

杀马特。学长 韩版系。学妹 提交于 2019-12-02 00:36:48
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 use xcb_configure_window . But it looks very limited to me: it only allows either to rise the window on top of all, or put it to the very bottom (no notion of layers or something). What a limited functionality :(. What I really would like to do is to define the window order and tell X about it. Or to define multiple layers of windows (e.g, normal, above all, below all). So I could rise (or lower) the window with respect

“Failed to load platform plugin ”xcb“ ” while launching qt5 app on linux without qt installed

此生再无相见时 提交于 2019-11-26 11:45:30
I wrote application for linux which uses Qt5. But when I am trying to launch it on the linux without Qt SDK installed, the output in console is: Failed to load platform plugin "xcb". Available platforms are: How can I fix this? May be I need to copy some plugin file? When I use ubuntu with Qt5 installed, but I rename Qt directory, the same problem occurs. So, it uses some file from Qt directory... UPDATE: when I create in the app dir "platforms" folder with the file libqxcb.so , the app still doesnot start, but the error message changes: Failed to load platform plugin "xcb". Available

“Failed to load platform plugin ”xcb“ ” while launching qt5 app on linux without qt installed

China☆狼群 提交于 2019-11-26 02:54:51
问题 I wrote application for linux which uses Qt5. But when I am trying to launch it on the linux without Qt SDK installed, the output in console is: Failed to load platform plugin \"xcb\". Available platforms are: How can I fix this? May be I need to copy some plugin file? When I use ubuntu with Qt5 installed, but I rename Qt directory, the same problem occurs. So, it uses some file from Qt directory... UPDATE: when I create in the app dir \"platforms\" folder with the file libqxcb.so , the app