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:
5213695
)
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>
Mon, 20 Mar 2023 06:28:02 +0000
(07:28 +0100)
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 95de0e98a5ede7bc7209722e6797bb56af72ddc3..8a8ac4c3652f59cf74c09a243d3d164a7451926f 100644
(file)
--- a/
openbox/actions/moveresizeto.c
+++ b/
openbox/actions/moveresizeto.c
@@
-118,7
+118,7
@@
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();
+ /* desktop specified by number */
}
area = screen_area(c->desktop, mon, NULL);