Andreas Kling
8358833bc8
WindowServer: Run clang-format on everything.
2019-06-07 11:47:19 +02:00
Andreas Kling
641893104a
WindowServer: Add a maximize/unmaximize button to windows.
2019-05-12 21:32:02 +02:00
Andreas Kling
62f7e8ac62
WindowServer: WSButton should be more discerning with MouseUp/MouseMove.
2019-04-23 01:17:20 +02:00
Andreas Kling
94a5e08faf
WindowServer: Rename WSMessage* => WSEvent*.
...
Since I'm on a roll here, I'll just rename WSMessageFoo to WSEventFoo now
that these inherit from CEventFoo anyway.
2019-04-14 05:23:37 +02:00
Andreas Kling
8bda69e32f
WindowServer: Remove some debug spam.
2019-04-06 13:45:42 +02:00
Andreas Kling
f12573cb63
Add a slight hover highlight to GButton and WSButton. :^)
2019-04-06 04:08:09 +02:00
Andreas Kling
0fc3ccaa52
WindowServer: Make WSButton behave more like a normal button.
...
Previously it would just close the window on MouseDown. Now we do the normal
thing where we require a MouseUp inside the button rect before committing.
2019-04-05 21:53:45 +02:00
Andreas Kling
0d60c56b51
WindowServer: Make WSWindowFrame and WSButton deal in relative coordinates.
...
This was a bit painful to get right. The code is a lot more pleasant to
deal with now that all coordinates are relative to their local system
instead of being absolute screen coordinates.
2019-04-05 21:33:34 +02:00
Andreas Kling
3155a2e128
WindowServer: Add a WSButton class and make the window close buttons use it.
2019-04-05 18:40:36 +02:00