OSDev.org
https://forum.osdev.org/

GUI window movement
https://forum.osdev.org/viewtopic.php?f=1&t=53949
Page 1 of 1

Author:  Kamal123 [ Tue Sep 21, 2021 6:25 am ]
Post subject:  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?

Author:  iansjack [ Tue Sep 21, 2021 6:55 am ]
Post subject:  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.

Author:  bloodline [ Wed Sep 22, 2021 7:59 am ]
Post subject:  Re: GUI window movement

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?


Your graphics routines need to clip to the bounds of the display.

Author:  thewrongchristian [ Thu Sep 23, 2021 2:58 am ]
Post subject:  Re: GUI window movement

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?


Try this:

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.

Author:  Kamal123 [ Thu Sep 23, 2021 10:59 am ]
Post subject:  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

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/