feat: screenshot app improvement, WIndow Server supports full-screen overlay, Disks app UI improvements
This commit is contained in:
@@ -159,6 +159,7 @@ namespace WinServer {
|
||||
slot.ownerVa = userVa;
|
||||
slot.dirty = false;
|
||||
slot.cursor = 0;
|
||||
slot.flags = 0;
|
||||
|
||||
int tlen = 0;
|
||||
while (title[tlen] && tlen < 63) {
|
||||
@@ -224,6 +225,7 @@ namespace WinServer {
|
||||
info.height = g_slots[i].height;
|
||||
info.dirty = g_slots[i].dirty ? 1 : 0;
|
||||
info.cursor = g_slots[i].cursor;
|
||||
info.flags = g_slots[i].flags;
|
||||
g_slots[i].dirty = false;
|
||||
count++;
|
||||
}
|
||||
@@ -336,6 +338,16 @@ namespace WinServer {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SetFlags(int windowId, int callerPid, uint32_t flags) {
|
||||
WsGuard guard;
|
||||
if (windowId < 0 || windowId >= MaxWindows) return -1;
|
||||
|
||||
WindowSlot& slot = g_slots[windowId];
|
||||
if (!slot.used || slot.ownerPid != callerPid) return -1;
|
||||
slot.flags = flags & Montauk::WIN_FLAG_FULLSCREEN;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SetScale(int scale) {
|
||||
WsGuard guard;
|
||||
if (scale < 0) scale = 0;
|
||||
|
||||
Reference in New Issue
Block a user