mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:12:44 +00:00 
			
		
		
		
	 d111b6ead4
			
		
	
	
		d111b6ead4
		
	
	
	
	
		
			
			We now show a quick window outline animation when going in/out of minimized state. It's a simple 10 frame animation at 60fps, just to give a visual cue of what's happening with the window. The Taskbar sends over the corresponding button rect for each window to the WindowServer using a new WM_SetWindowTaskbarRect message. Note that when unminimizing, we still *show* the window right away, and don't hold off until the animation has finished. This avoids making the desktop feel slow/sluggish. :^)
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			424 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			424 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include "WindowIdentifier.h"
 | |
| #include <LibGUI/GButton.h>
 | |
| 
 | |
| class TaskbarButton final : public GButton {
 | |
|     C_OBJECT(TaskbarButton)
 | |
| public:
 | |
|     TaskbarButton(const WindowIdentifier&, GWidget* parent);
 | |
|     virtual ~TaskbarButton() override;
 | |
| 
 | |
| private:
 | |
|     virtual void context_menu_event(GContextMenuEvent&) override;
 | |
|     virtual void resize_event(GResizeEvent&) override;
 | |
| 
 | |
|     WindowIdentifier m_identifier;
 | |
| };
 |