projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c31ec5a
)
Remove incorrect assertion for MoveResizeTo
author
Mikael Magnusson
<mikachu@gmail.com>
Fri, 20 May 2022 14:22:44 +0000
(16:22 +0200)
committer
Mikael Magnusson
<mikachu@gmail.com>
Fri, 20 May 2022 14:27:21 +0000
(16:27 +0200)
This caused gcc to assume the user never specifies a desktop by number,
which was not very helpful. Please crash when reaching an assert,
thanks.
openbox/actions/moveresizeto.c
patch
|
blob
|
history
diff --git
a/openbox/actions/moveresizeto.c
b/openbox/actions/moveresizeto.c
index 2dbddd54944a2f32eb702e353f80459efcef6493..3b9be7049d4a30036c1919b32203eb01822a803f 100644
(file)
--- a/
openbox/actions/moveresizeto.c
+++ b/
openbox/actions/moveresizeto.c
@@
-118,7
+118,6
@@
static gboolean run_func(ObActionsData *data, gpointer options)
case PREV_MONITOR:
mon = (cmon == 0) ? (screen_num_monitors - 1) : (cmon - 1); break;
default:
- g_assert_not_reached();
}
area = screen_area(c->desktop, mon, NULL);