mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibGUI+WindowServer: Add a GResizeCorner widget.
This widget is automatically included in GStatusBar, but can be added in any other place, too. When clicked (with the left button), it initiates a window resize (using a WM request.) In this patch I also fixed up some issues with override cursors being cleared after the WindowServer finishes a drag or resize.
This commit is contained in:
parent
34c5db61aa
commit
ea9a39a9f2
19 changed files with 189 additions and 26 deletions
|
@ -55,6 +55,8 @@ enum class WSAPI_StandardCursor : unsigned char {
|
|||
IBeam,
|
||||
ResizeHorizontal,
|
||||
ResizeVertical,
|
||||
ResizeDiagonalTLBR,
|
||||
ResizeDiagonalBLTR,
|
||||
};
|
||||
|
||||
enum WSAPI_WMEventMask : unsigned {
|
||||
|
@ -126,6 +128,7 @@ struct WSAPI_ServerMessage {
|
|||
union {
|
||||
struct {
|
||||
int server_pid;
|
||||
int your_client_id;
|
||||
WSAPI_Rect screen_rect;
|
||||
} greeting;
|
||||
struct {
|
||||
|
@ -211,6 +214,7 @@ struct WSAPI_ClientMessage {
|
|||
SetWindowOverrideCursor,
|
||||
WM_SetActiveWindow,
|
||||
WM_SetWindowMinimized,
|
||||
WM_StartWindowResize,
|
||||
PopupMenu,
|
||||
DismissMenu,
|
||||
SetWindowIcon,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue