I develop a plugin for Compiz (window manager). A window manager is run by xfce on my test machine. I have two monitors which are set vertically (top 1920x1080+0+0, bottom 1920x1080+0+1080). A bottom monitor is set as a primary monitor. This option (primary monitor) is available for example in nvidia-settings. In my code I can use xlib function XConfigureWindow when I want to set a top left corner of the game window at position [0,0]. This works fine, but when a window is in the fullscreen mode (covers two monitors) and get a focus it sometimes changes a position. Then the new position of the top left corner starts at 0, 1080 and I can only see half of the window. Maybe that behaviour is connected with the primary screen option. What the primary screen mean for x11 window system ? I'm not allowed to change that option. How to keep a window at fixed position ? Is there any xlib function or a flag which I can use ?
x11 - how to keep window at fixed position
1.9k Views Asked by Irbis At
1
There are 1 best solutions below
Related Questions in X11
- How can I set an uncommon screen resolution on GNU/Linux with an Arc 380 GPU and X11?
- Create screenshot and encode it in base64
- Rasppberry pi Remote Desktop Conection Problem
- GithubActions - PlatformError: X11: The DISPLAY environment variable is missing
- Unable to run X11 applications remotely via XQuartz on a mac
- WSL2 OpenAI Gym - render segmentation fault
- Converting BufferedImage to Pixmap
- Is there a lightweight GUI protocol like X11 that works well over ssh?
- dropdown is closing quickly without any action when tried to open it. it is a motif Xt library based application
- XCreateWindow - parent argument implications
- Drawing image to root window in Xorg using Xcb causes it to cover other windows
- How to open a GUI-Application on a Server (Raspi) via SSH using python/paramiko?
- Switch layouts and get char without X11 by driver?
- Xrandr making DisplayWidth() return incorrect value?
- Xlib Window Manager: Closing Focused Window Causes Unexpected Shutdown
Related Questions in XFCE
- Not Seeing Cursor Movement in Dockerized FastAPI with noVNC and pyautogui
- XFCE keyboard shortcut with ~ or $HOME equivalent
- PyAutoGui on non-gnome OS (Lubuntu)
- Can't import a builtin module python3.12
- Issue with some accented letters in Ubuntu 22.04 and Sublime Text 4
- UnicodeDecodeError in python input function runned by XFCE Terminal
- Is defining repetitive Orage events by date possible?
- Creating a Thunar Custom Action to compare the md5sum of file against an md5 in the clipboard
- How I can disable xfce mouseover popups?
- xfce 2nd panel underneath 1st panel that will lock to the border
- Script to open xfce4-terminal drop-down and then run a command in that dropped window
- Can I use same software after switching Window Manager or Desktop Environment in Linux
- Path name no longer gets updated in tabs of xfce4-terminal once you update $prompt
- Error when running print dialog from GTK 3.0
- How to Pygtk WindowTypeHint to DOCK on XFCE and have it visible on the desktop
Related Questions in COMPIZ
- VSCode icon is missing in app switcher on Ubuntu
- Grainy display around dialog boxes in ubuntu
- assigning shortcut key to launch python
- How to move window offscreen with wmctrl
- Unable to install Compiz on linux
- profiling a window manager - glXSwapBuffers performance
- Sending an event using XSendEvent when a pointer is grabbed
- x11 - how to keep window at fixed position
- Can I assign a keyboard shortcut to Compiz "window overview" effect
- How to apply a graphical effect on graphical output on the fly under linux?
- Ubuntu 12.04 LTS - can't install necessary libs
- Generating a Shadow under Xlib Window
- How to make a window always on top?
- Ubuntu: Open Netbeans in specific workspace (using window matching)
- What Mechanism does compiz use when copying from a xclient's frontbuffer to the backbuffer of root window?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Window manager will not be able to do anything to a window created with this option.