Skip to content

Commit 1830579

Browse files
committed
Add comments
1 parent 93bbfb7 commit 1830579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ShellClients/ShellClientsManager.vala

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public class Gala.ShellClientsManager : Object {
210210

211211
switch (key) {
212212
case "anchor":
213-
int parsed;
213+
int parsed; // Will be used as Meta.Side which is a 4 value bitfield so check bounds for that
214214
if (int.try_parse (val, out parsed) && 0 <= parsed && parsed <= 15) {
215215
set_anchor (window, parsed);
216216
} else {
@@ -219,7 +219,7 @@ public class Gala.ShellClientsManager : Object {
219219
break;
220220

221221
case "hide-mode":
222-
int parsed;
222+
int parsed; // Will be used as Pantheon.Desktop.HideMode which is a 5 value enum so check bounds for that
223223
if (int.try_parse (val, out parsed) && 0 <= parsed && parsed <= 4) {
224224
set_hide_mode (window, parsed);
225225
} else {

0 commit comments

Comments
 (0)