1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:47:45 +00:00
serenity/Userland/Services/WindowServer
Sam Atkins 11cb7c7b28 WindowServer: Ensure windows are wide enough to show title buttons :^)
Previously, windows without a defined minimum size (or one produced from
the minimum sizes of their contents) would be shrunk down to 0 x 0,
which makes the title buttons stick out the side and become impossible
to interact with.

This patch uses the theme metrics to calculate a minimum size that is as
small as possible while still keeping the title buttons and app icon
usable. This is combined with the minimum size requested by the app
itself.

Switching themes automatically updates the calculated minimum sizes for
all existing windows. As noted, if the new theme has narrower title
buttons then the old minimum is kept, but this shouldn't be noticeable
unless you're looking for it.
2022-07-27 00:01:42 +01:00
..
Animation.cpp WindowServer: Fix animation crash 2022-03-18 20:00:30 +01:00
Animation.h WindowServer: Fix animation crash 2022-03-18 20:00:30 +01:00
AppletManager.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
AppletManager.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Button.cpp WindowServer: Fix crash when hovering over title buttons 2022-05-18 19:05:18 +02:00
Button.h WindowServer: Support hover icons for title buttons 2022-05-03 22:00:14 +02:00
CMakeLists.txt WindowServer: Create the VirtualScreenBackend 2022-04-21 13:41:55 +02:00
Compositor.cpp WindowServer: Fix the cursor being offset with highlighting enabled 2022-06-10 23:02:34 +01:00
Compositor.h WindowServer: Fix animated cursor not starting after cursor theme switch 2022-06-10 20:51:55 +01:00
ConnectionFromClient.cpp WindowServer: Ensure windows are wide enough to show title buttons :^) 2022-07-27 00:01:42 +01:00
ConnectionFromClient.h WindowServer: Ensure windows are wide enough to show title buttons :^) 2022-07-27 00:01:42 +01:00
Cursor.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Cursor.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Event.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
EventLoop.cpp Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
EventLoop.h Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
HardwareScreenBackend.cpp Kernel+Userland: Rename FB.h => Graphics.h 2022-07-23 10:42:08 +01:00
HardwareScreenBackend.h Userland: Remove stale remainders of old framebuffer devices 2022-07-23 10:42:08 +01:00
HitTestResult.h WindowServer: Make hit test results richer 2021-06-18 17:40:05 +02:00
KeymapSwitcher.cpp Keymap+WindowServer: Add context menu to keymap applet 2022-07-21 16:40:47 +02:00
KeymapSwitcher.h Keymap+WindowServer: Add context menu to keymap applet 2022-07-21 16:40:47 +02:00
main.cpp Kernel+Userland: Add ioctl to set process ownership of DisplayConnector 2022-07-23 10:42:08 +01:00
Menu.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Menu.h LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
Menubar.cpp LibGUI, WindowServer: Greatly simplify menubar logic 2021-08-02 00:39:15 +02:00
Menubar.h WindowServer: Update menu buttons' rects on font change 2022-03-14 22:29:57 +01:00
MenuItem.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
MenuItem.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
MenuManager.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
MenuManager.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
MultiScaleBitmaps.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
MultiScaleBitmaps.h WindowServer: Fix crash when hovering over title buttons 2022-05-18 19:05:18 +02:00
Overlays.cpp WindowServer: Pick font with glyphs for digits for ScreenNumberOverlay 2022-01-17 02:10:09 +01:00
Overlays.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Screen.cpp Kernel+Userland: Rename FB.h => Graphics.h 2022-07-23 10:42:08 +01:00
Screen.h WindowServer: Drop support for the DisplayConnector write interface 2022-06-06 20:11:05 +01:00
ScreenBackend.h WindowServer: Drop support for the DisplayConnector write interface 2022-06-06 20:11:05 +01:00
ScreenLayout.cpp WindowServer: Add API to set/get screen layouts 2021-06-20 14:57:26 +02:00
ScreenLayout.h Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
ScreenLayout.ipp Kernel+Userland: Rename FB.h => Graphics.h 2022-07-23 10:42:08 +01:00
VirtualScreenBackend.cpp Everywhere: Split Error::from_string_literal and Error::from_string_view 2022-07-12 23:11:35 +02:00
VirtualScreenBackend.h Everywhere: Purge all support and usage of framebuffer devices 2022-05-05 20:55:57 +02:00
Window.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Window.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
WindowClient.ipc WindowServer+LibGUI: Notify windows when their maximized state changes 2022-04-05 17:45:07 +02:00
WindowFrame.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
WindowFrame.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
WindowManager.cpp WindowServer: Ensure windows are wide enough to show title buttons :^) 2022-07-27 00:01:42 +01:00
WindowManager.h Keymap+WindowServer: Add context menu to keymap applet 2022-07-21 16:40:47 +02:00
WindowManagerClient.ipc Taskbar+Desktop: Add super+D keyboard shortcut 2022-06-01 19:31:34 +02:00
WindowManagerServer.ipc Keymap+WindowServer: Add context menu to keymap applet 2022-07-21 16:40:47 +02:00
WindowServer.ipc WindowServer: Make window stealing related functions synchronous 2022-06-27 20:22:15 +01:00
WindowStack.cpp Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
WindowStack.h Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
WindowSwitcher.cpp LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
WindowSwitcher.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
WindowType.h WindowServer: Add sanity checks to create_window IPC 2021-06-03 08:27:57 +02:00
WMConnectionFromClient.cpp Keymap+WindowServer: Add context menu to keymap applet 2022-07-21 16:40:47 +02:00
WMConnectionFromClient.h Keymap+WindowServer: Add context menu to keymap applet 2022-07-21 16:40:47 +02:00