window: Clean up coding style of meta_window_queue()
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2264>
This commit is contained in:
parent
043cab4235
commit
b5d873a8ac
@ -2039,12 +2039,14 @@ meta_window_flush_calc_showing (MetaWindow *window)
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_queue (MetaWindow *window, guint queuebits)
|
||||
meta_window_queue (MetaWindow *window,
|
||||
MetaQueueType queuebits)
|
||||
{
|
||||
guint queuenum;
|
||||
unsigned int queuenum;
|
||||
|
||||
/* Easier to debug by checking here rather than in the idle */
|
||||
g_return_if_fail (!window->override_redirect || (queuebits & META_QUEUE_MOVE_RESIZE) == 0);
|
||||
g_return_if_fail (!window->override_redirect ||
|
||||
(queuebits & META_QUEUE_MOVE_RESIZE) == 0);
|
||||
|
||||
for (queuenum = 0; queuenum < NUMBER_OF_QUEUES; queuenum++)
|
||||
{
|
||||
@ -2096,13 +2098,13 @@ meta_window_queue (MetaWindow *window, guint queuebits)
|
||||
*/
|
||||
|
||||
if (queue_later[queuenum] == 0)
|
||||
queue_later[queuenum] = meta_later_add
|
||||
(
|
||||
window_queue_later_when[queuenum],
|
||||
{
|
||||
queue_later[queuenum] =
|
||||
meta_later_add (window_queue_later_when[queuenum],
|
||||
window_queue_later_handler[queuenum],
|
||||
GUINT_TO_POINTER (queuenum),
|
||||
NULL
|
||||
);
|
||||
NULL);
|
||||
}
|
||||
|
||||
/* And now we actually put it on the queue. */
|
||||
queue_pending[queuenum] = g_slist_prepend (queue_pending[queuenum],
|
||||
|
Loading…
Reference in New Issue
Block a user