mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
wayland: Use right sign for workspace ID
We get a signed integer (-1 meaning "no workspace specified"), store it in an unsigned integer, check for >= 0 (of course it is!) and set as the window workspace (signed integer, -1 meaning "show on all workspaces"). What could possibly go wrong? https://gitlab.gnome.org/GNOME/mutter/merge_requests/639
This commit is contained in:
parent
740a62044e
commit
181c7cab32
@ -172,7 +172,8 @@ gtk_surface_request_focus (struct wl_client *client,
|
||||
|
||||
if (sequence)
|
||||
{
|
||||
uint32_t timestamp, workspace_idx;
|
||||
uint32_t timestamp;
|
||||
int32_t workspace_idx;
|
||||
|
||||
workspace_idx = meta_startup_sequence_get_workspace (sequence);
|
||||
timestamp = meta_startup_sequence_get_timestamp (sequence);
|
||||
|
Loading…
Reference in New Issue
Block a user