LibGUI: Add support for focusable windows and mouse capturing
These are essential parts of a window server! This allows making TaskBar non-focusable.
This commit is contained in:
@@ -13,12 +13,14 @@ int main()
|
||||
|
||||
auto window = MUST(LibGUI::Window::create(0, font.height() + 2 * padding, "TaskBar"));
|
||||
|
||||
auto attributes = window->get_attributes();
|
||||
auto attributes = LibGUI::Window::default_attributes;
|
||||
attributes.title_bar = false;
|
||||
attributes.movable = false;
|
||||
attributes.focusable = false;
|
||||
attributes.alpha_channel = false;
|
||||
attributes.rounded_corners = false;
|
||||
window->set_attributes(attributes);
|
||||
|
||||
window->set_close_window_event_callback([]() {});
|
||||
|
||||
window->set_position(0, 0);
|
||||
|
||||
Reference in New Issue
Block a user