fix: update template, prevent double-spaced persisted kernel logs
This commit is contained in:
@@ -10,8 +10,10 @@
|
||||
#include "gui/svg.hpp"
|
||||
#include "gui/window.hpp"
|
||||
#include "gui/widgets.hpp"
|
||||
#include "gui/mtk/widgets.hpp"
|
||||
#include "gui/terminal.hpp"
|
||||
#include <Api/Syscall.hpp>
|
||||
#include <montauk/keyboard.h>
|
||||
|
||||
namespace gui {
|
||||
|
||||
@@ -172,8 +174,8 @@ struct DesktopState {
|
||||
int desktop_item_count;
|
||||
int desktop_item_capacity;
|
||||
|
||||
bool ctx_menu_open;
|
||||
int ctx_menu_x, ctx_menu_y;
|
||||
// Right-click menu on the desktop background (MTK context menu).
|
||||
mtk::ContextMenuState ctx_menu;
|
||||
|
||||
bool net_popup_open;
|
||||
montauk::abi::NetCfg cached_net_cfg;
|
||||
@@ -209,18 +211,11 @@ struct DesktopState {
|
||||
bool wifi_autoconnect_done; // saved-network join already tried
|
||||
bool wifi_joining; // a join we started is in flight
|
||||
bool wifi_dhcp_pending; // ask for a lease once the link is up
|
||||
bool wifi_dhcp_waiting; // dhcp.elf running, no address yet
|
||||
char wifi_joining_ssid[WIFI_SSID_CAP];
|
||||
char wifi_status[96]; // last result line in the popup
|
||||
uint64_t wifi_status_time;
|
||||
|
||||
// Passphrase prompt, shown when a selected network needs a key.
|
||||
bool wifi_prompt_open;
|
||||
char wifi_prompt_ssid[WIFI_SSID_CAP];
|
||||
char wifi_prompt_password[WIFI_PSK_CAP];
|
||||
int wifi_prompt_len;
|
||||
bool wifi_prompt_reveal;
|
||||
bool wifi_prompt_remember;
|
||||
uint8_t wifi_prompt_security;
|
||||
|
||||
bool vol_popup_open;
|
||||
Rect vol_icon_rect;
|
||||
@@ -240,6 +235,12 @@ struct DesktopState {
|
||||
uint64_t thermal_last_poll;
|
||||
Rect temp_icon_rect;
|
||||
|
||||
// Keyboard layouts. The desktop translates hardware scan codes before
|
||||
// dispatching events, so embedded and external apps see the same layout.
|
||||
montauk::keyboard::State keyboard;
|
||||
Rect keyboard_layout_rect;
|
||||
uint64_t keyboard_last_poll;
|
||||
|
||||
int screen_w, screen_h;
|
||||
uint32_t* background_cache;
|
||||
int background_cache_pitch;
|
||||
@@ -275,5 +276,6 @@ void desktop_draw_panel(DesktopState* ds);
|
||||
void desktop_draw_window(DesktopState* ds, int idx);
|
||||
void desktop_handle_mouse(DesktopState* ds);
|
||||
void desktop_handle_keyboard(DesktopState* ds, const montauk::abi::KeyEvent& key);
|
||||
bool desktop_refresh_keyboard_layouts(DesktopState* ds, bool force);
|
||||
|
||||
} // namespace gui
|
||||
|
||||
Reference in New Issue
Block a user