GUI window movement
GUI window movement
Hi, I have been working on a compositing window manager for my kernel. The problem I am facing is with windows movements. If I move the window to right side or left side of the screen such that half of the window moves out of the visible screen, the half part automatically appears from left or from right side of the screen. For example, if I move window to left of the screen, the half part that left outside the screen will appear from right side of the screen. Why is that happening? How to fix that?
Re: GUI window movement
It seems that instead of treating the right-hand part of the window as outside the viewport you are merely moving it to a higher position in video RAM.
Re: GUI window movement
Your graphics routines need to clip to the bounds of the display.Kamal123 wrote:Hi, I have been working on a compositing window manager for my kernel. The problem I am facing is with windows movements. If I move the window to right side or left side of the screen such that half of the window moves out of the visible screen, the half part automatically appears from left or from right side of the screen. For example, if I move window to left of the screen, the half part that left outside the screen will appear from right side of the screen. Why is that happening? How to fix that?
CuriOS: A single address space GUI based operating system built upon a fairly pure Microkernel/Nanokernel. Download latest bootable x86 Disk Image: https://github.com/h5n1xp/CuriOS/blob/main/disk.img.zip
Discord:https://discord.gg/zn2vV2Su
Discord:https://discord.gg/zn2vV2Su
-
- Member
- Posts: 426
- Joined: Tue Apr 03, 2018 2:44 am
Re: GUI window movement
Try this:Kamal123 wrote:Hi, I have been working on a compositing window manager for my kernel. The problem I am facing is with windows movements. If I move the window to right side or left side of the screen such that half of the window moves out of the visible screen, the half part automatically appears from left or from right side of the screen. For example, if I move window to left of the screen, the half part that left outside the screen will appear from right side of the screen. Why is that happening? How to fix that?
https://github.com/JMarlin/wsbe
Not looked at it myself in detail, but I found it via this forum, and will explain the basics of clipping.
Re: GUI window movement
Thank you everyone.. I have implemented clipping system.. now windows movements are limited to screen visible portions.
Do follow & fork my project
https://github.com/manaskamal/aurora-xeneva
Do follow & fork my project
https://github.com/manaskamal/aurora-xeneva