mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
Remove spurious unused local variable.
This commit is contained in:
parent
2c837483ec
commit
ce5a9c1096
1 changed files with 2 additions and 3 deletions
|
|
@ -1004,7 +1004,6 @@ notify_key(struct wlsc_input_device *device,
|
||||||
uint32_t key, uint32_t state)
|
uint32_t key, uint32_t state)
|
||||||
{
|
{
|
||||||
struct wlsc_compositor *ec = device->ec;
|
struct wlsc_compositor *ec = device->ec;
|
||||||
struct wlsc_surface *s;
|
|
||||||
|
|
||||||
switch (key | ec->meta_state) {
|
switch (key | ec->meta_state) {
|
||||||
case KEY_EJECTCD | META_DOWN:
|
case KEY_EJECTCD | META_DOWN:
|
||||||
|
|
@ -1017,8 +1016,8 @@ notify_key(struct wlsc_input_device *device,
|
||||||
case KEY_4 | META_DOWN:
|
case KEY_4 | META_DOWN:
|
||||||
case KEY_5 | META_DOWN:
|
case KEY_5 | META_DOWN:
|
||||||
update_surface_targets(ec, key - KEY_1);
|
update_surface_targets(ec, key - KEY_1);
|
||||||
if (device->grab == 0 && s != NULL)
|
if (device->grab == 0)
|
||||||
device->focus_surface = ec->primary;
|
device->keyboard_focus = ec->primary;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case KEY_LEFTMETA:
|
case KEY_LEFTMETA:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue