summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2021-07-09LibThreading: Rename Lock => MutexAndreas Kling
2021-07-09LibThreading: Remove unused "Lockable" classAndreas Kling
2021-07-09LibJS: Add %TypedArray%.prototype.mapLuke
2021-07-09LibJS: Add TypedArraySpeciesCreate and %TypedArray%.prototype.filterLuke
I'm not too happy with how I get the default constructor in typed_array_species_create, but it works for now.
2021-07-09LibJS: Move typed_array_create to TypedArray.{h,cpp}Luke
This is to make it accessible from TypedArrayPrototype, for use with typed_array_species_create.
2021-07-09Userland: Add ability to capture rectangular region in shotAziz Berkay Yesilyurt
A click and drag selectable, transparent, fullscreen window is displayed with the command line argument -r for screenshots.
2021-07-09WindowServer: Paint background when a fullscreen window is transparentAziz Berkay Yesilyurt
The windows in the background are ignored when the window is fullscreen. However, we still would like to see the background if that window is transparent.
2021-07-09LibGUI: Verify m_window_id is not-zero in set_maximizedAziz Berkay Yesilyurt
Window::set_maximized requires non-zero window id to be a valid call, i.e. calling Window::show beforehand. A verify statement before the server call can help developers by hinting correct usage.
2021-07-09Revert "Userland: Add ability to screenshot rectangular region in `shot` ↵Ali Mohammad Pur
(#8515)" This reverts commit 1c06d772628a0191289fe30edcc143e29ba2ca32. This was squashed by mistake, the rebased version will follow.
2021-07-09Userland: Add ability to screenshot rectangular region in `shot` (#8515)Aziz Berkay Yesilyurt
* LibGUI: Verify m_window_id is not-zero in set_maximized Window::set_maximized requires non-zero window id to be a valid call, i.e. calling Window::show beforehand. A verify statement before the server call can help developers by hinting correct usage. * LibGUI: Paint background when the fullscreen window is transparent The windows in the background are ignored when the window is fullscreen. However, we still would like to see the background if that window is transparent. * Userland: Add ability to capture rectangular region in shot A click and drag selectable, transparent, fullscreen window is displayed with the command line argument -r for screenshots.
2021-07-09ImageViewer: Use real path for the image pathAziz Berkay Yesilyurt
By using the real path for the image, ImageViewer can iterate over the images in the same directory. Before, this was not possible when ImageViewer opened from Terminal with a path argument.
2021-07-09ImageViewer: Use LexicalPath to grab current_dirAziz Berkay Yesilyurt
2021-07-09ImageViewer: Don't resize the window after the first image is displayedAziz Berkay Yesilyurt
2021-07-08LibJS/Tests: Add tests for Temporal.Instant() constructorLinus Groh
2021-07-08LibJS: Implement Temporal.Instant.prototype.epochNanosecondsLinus Groh
2021-07-08LibJS: Implement Temporal.Instant.prototype.epochMicrosecondsLinus Groh
2021-07-08LibJS: Implement Temporal.Instant.prototype.epochMillisecondsLinus Groh
2021-07-08LibJS: Implement Temporal.Instant.prototype.epochSecondsLinus Groh
2021-07-08LibJS: Implement Temporal.Instant.prototype[@@toStringTag]Linus Groh
2021-07-08LibJS/Tests: Add tests for Temporal.TimeZone() constructorLinus Groh
2021-07-08LibJS: Implement Temporal.TimeZone.prototype.idLinus Groh
2021-07-08LibJS: Implement Temporal.TimeZone.prototype.toJSON()Linus Groh
2021-07-08LibJS: Implement Temporal.TimeZone.prototype.toString()Linus Groh
2021-07-08LibJS: Implement Temporal.TimeZone.prototype[@@toStringTag]Linus Groh
2021-07-08Taskbar: Make clicks at the edges and corners work as expectedAndrea Martinelli
This makes it easy for the user to just throw the mouse at the corner of the screen and obtain the desired outcome (eg. opening the start menu), without having to precisely position the cursor over one of the buttons.
2021-07-08WindowServer: Add missing minimize check to highlighted window callbacknetworkException
This patch adds a missing minimize check for highligted windows in WindowStack::for_each_visible_window_of_type_from_front_to_back(). Minimized windows should not be treated as visible in this context. Previously, iterating through each visible Window when recomputing occlusions in the Compositor would cause a crash if a highlighted Window is also minimized at the same time. As the WindowSwitcher currently highligts Windows even when they are minimized, opening it while any Window is minimized would cause WindowServer to crash.
2021-07-08PixelPaint: Add method to merge visible layersMarcus Nilsson
This adds a function that merges all visible layers to one, ignoring the invisible.
2021-07-08PixelPaint: Scroll into view when reordering layersMarcus Nilsson
Make LayerListWidget scroll into view when reordering layers.
2021-07-08PixelPaint: Make brush draw on mousedownMarcus Nilsson
This makes the brush tool start drawing a point before the user moves the mouse, like in Photoshop and Gimp. The number of iterations of draw_point makes for roughly 4 clicks to full opacity.
2021-07-08PixelPaint: Add method to flatten image layersMarcus Nilsson
This adds Image::flatten_all_layers() that allows the user to flatten all the visible layers into one.
2021-07-08WindowServer: Remove rect behind window icon in WindowSwitchernetworkException
This patch removes the background behind window icons in the WindowSwitcher which looked like it was being rendered incorrectly (without alpha) previously.
2021-07-08LibVT: Ignore DECSTBM with invalid values (#8559)pancake
Co-authored-by: pancake <pancake@nopcode.org>
2021-07-08LibJS: Add %TypedArray%.prototype.reduceRightIdan Horowitz
2021-07-08LibJS: Add %TypedArray%.prototype.reduceIdan Horowitz
2021-07-08LibJS: Add %TypedArray%.prototype.lastIndexOfIdan Horowitz
2021-07-08LibJS: Add %TypedArray%.prototype.indexOfIdan Horowitz
2021-07-08LibJS: Add %TypedArray%.prototype.includesIdan Horowitz
2021-07-08LibJS: Add %TypedArray%.prototype.fillIdan Horowitz
2021-07-08LibJS: Add missing a TypedArray excessive length limit checkIdan Horowitz
These checks already existed for the 3 other TypedArray construction methods. (This commit also fixes an incorrect type in one of them)
2021-07-08LibJS: Add %TypedArray%.prototype.copyWithinLuke
This fixes 44 test262 cases.
2021-07-08Utilities: Teach sql utility to use the SQLClient classJan de Visser
This allows the utility to connect to databases and submit SQL statements.
2021-07-08LibSQL+SQLServer: Build SQLServer system serviceJan de Visser
This patch introduces the SQLServer system server. This service is supposed to be the only process/application talking to database storage. This makes things like locking and caching more reliable, easier to implement, and more efficient. In LibSQL we added a client component that does the ugly IPC nitty- gritty for you. All that's needed is setting a number of event handler lambdas and you can connect to databases and execute statements on them. Applications that wish to use this SQLClient class obviously need to link LibSQL and LibIPC.
2021-07-08LibSQL: Invent statement execution machinery and CREATE SCHEMA statementJan de Visser
This patch introduces the ability execute parsed SQL statements. The abstract AST Statement node now has a virtual 'execute' method. This method takes a Database object as parameter and returns a SQLResult object. Also introduced here is the CREATE SCHEMA statement. Tables live in a schema, and if no schema is present in a table reference the 'default' schema is implied. This schema is created if it doesn't yet exist when a Database object is created. Finally, as a proof of concept, the CREATE SCHEMA and CREATE TABLE statements received an 'execute' implementation. The CREATE TABLE method is not able to create tables created from SQL queries yet.
2021-07-08LibSQL: Move Order and Nulls enums from SQL::AST to SQL namespaceJan de Visser
The Order enum is used in the Meta component of LibSQL. Using this enum meant having to include the monster AST/AST.h include file. Furthermore, they are sort of basic and therefore can live in the general SQL namespace. Moved to LibSQL/Type.h. Also introduced a new class, SQLResult, which is needed in future patches.
2021-07-08WindowServer: Add a new IPC to set the cursor positionAndrea Martinelli
2021-07-08FileManager: Add Open in Terminal on folder context menupancake
2021-07-08Kernel: Use PAE to allow accessing all physical memory beyond 4GBTom
We already use PAE for the NX bit, but this changes the PhysicalAddress structure to be able to hold 64 bit physical addresses. This allows us to use all the available physical memory.
2021-07-08LibC: Don't include `fenv.h` from `float.h`Daniel Bertalan
This fixes a build issue where `compiler-rt` tried to declare its own version of the `FE_*` macros, and included `float.h` in order to get the constants. `compiler-rt` tried to declare these as an enum, and failed with a syntax error when the constant's literal values were substituted.
2021-07-08ChessEngine: Don't call non-constexpr `sqrt` in a constexpr intiializerDaniel Bertalan
GCC likely has a builtin intrinsic that evaluates the operation at compile-time, even if the `LibM` is not declared as constexpr. Clang, however, does not like it, and it failed to compile this code.
2021-07-08Utilities/run-tests: Don't use `using enum`Daniel Bertalan
`using enum` statements will only be supported by the upcoming Clang 13 compiler, so the current code can't be built with the almost-ready Clang toolchain yet.