OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Oct 19, 2021 8:00 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: GUI window movement
PostPosted: Tue Sep 21, 2021 6:25 am 
Offline
Member
Member

Joined: Fri Nov 01, 2019 1:17 am
Posts: 45
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?


Top
 Profile  
 
 Post subject: Re: GUI window movement
PostPosted: Tue Sep 21, 2021 6:55 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4246
Location: Chichester, UK
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.


Top
 Profile  
 
 Post subject: Re: GUI window movement
PostPosted: Wed Sep 22, 2021 7:59 am 
Offline
Member
Member
User avatar

Joined: Tue Sep 15, 2020 8:07 am
Posts: 264
Location: London, UK
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.

_________________
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


Top
 Profile  
 
 Post subject: Re: GUI window movement
PostPosted: Thu Sep 23, 2021 2:58 am 
Offline
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 243
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.


Top
 Profile  
 
 Post subject: Re: GUI window movement
PostPosted: Thu Sep 23, 2021 10:59 am 
Offline
Member
Member

Joined: Fri Nov 01, 2019 1:17 am
Posts: 45
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group