swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.57k stars 1.11k forks source link

Sway intercepting/dropping keybindings #4321

Closed nolanwrightdev closed 5 years ago

nolanwrightdev commented 5 years ago

Hello,

I have a keybinding in Emacs of C-o (Control + o). It works perfectly fine in the TTY. However through the GUI, it does not work. Well, strangely, it does get triggered when I first hold down C-o and then release C, but that is not desirable. I should note that everything works for most other key combinations. I have observed this effect in both the standard GNU Emacs (version 26.2) which runs through XWayland and also a fork of Emacs that can run natively in Wayland.

Steps to reproduce (for me).

  1. Open Emacs.
  2. Have command bound to C-o.
  3. Press C-o.

My config:

# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.

### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys
set $left u
set $down t
set $up e
set $right h
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: it's recommended that you pass the final command to sway
set $menu pkill bemenu -u $USER || j4-dmenu-desktop --dmenu='bemenu -i --fn="Source Sans Pro"' --no-generic --term=alacritty

### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Example configuration:
#
#   output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs

### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
#          timeout 300 'swaylock -f -c 000000' \
#          timeout 600 'swaymsg "output * dpms off"' \
#               resume 'swaymsg "output * dpms on"' \
#          before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.

### Input configuration
#
# Example configuration:
#
#   input "2:14:SynPS/2_Synaptics_TouchPad" {
#       dwt enabled
#       tap enabled
#       natural_scroll enabled
#       middle_emulation enabled
#   }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.

input type:keyboard {
  xkb_layout us
  xkb_variant dvorak
  xkb_options ctrl:swapcaps
  repeat_delay 250
  repeat_rate 50
}

#input type:touchpad {
#  pointer_accel 0.5
#  scroll_factor 0.5
#}

### Key bindings
#
# Basics:
#

    # start browser
    bindsym $mod+b exec firefox

    # start a terminal
    bindsym $mod+Return exec $term

    # kill focused window
    bindsym $mod+Shift+q kill

    # start your launcher
    bindsym $mod+d exec $menu

    # Drag floating windows by holding down $mod and left mouse button.
    # Resize them with right mouse button + $mod.
    # Despite the name, also works for non-floating windows.
    # Change normal to inverse to use left mouse button for resizing and right
    # mouse button for dragging.
    floating_modifier $mod normal

    # reload the configuration file
    bindsym $mod+Shift+c reload

    # exit sway (logs you out of your Wayland session)
    bindsym $mod+Shift+z exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
    # Move your focus around
    bindsym $mod+$left focus left
    bindsym $mod+$down focus down
    bindsym $mod+$up focus up
    bindsym $mod+$right focus right
    # or use $mod+[up|down|left|right]
    bindsym $mod+Left focus left
    bindsym $mod+Down focus down
    bindsym $mod+Up focus up
    bindsym $mod+Right focus right

    # _move_ the focused window with the same, but add Shift
    bindsym $mod+Shift+$left move left
    bindsym $mod+Shift+$down move down
    bindsym $mod+Shift+$up move up
    bindsym $mod+Shift+$right move right
    # ditto, with arrow keys
    bindsym $mod+Shift+Left move left
    bindsym $mod+Shift+Down move down
    bindsym $mod+Shift+Up move up
    bindsym $mod+Shift+Right move right

    # media keys
    bindsym XF86AudioRaiseVolume exec amixer set Master 1dB+
    bindsym XF86AudioLowerVolume exec amixer set Master 1dB-
    bindsym XF86AudioMute exec amixer set Master toggle
    bindsym XF86MonBrightnessUp exec light -A 5
    bindsym XF86MonBrightnessDown exec light -U 5
#
# Workspaces:
#
    # switch to workspace
    bindsym $mod+1 workspace 1
    bindsym $mod+2 workspace 2
    bindsym $mod+3 workspace 3
    bindsym $mod+4 workspace 4
    bindsym $mod+5 workspace 5
    bindsym $mod+6 workspace 6
    bindsym $mod+7 workspace 7
    bindsym $mod+8 workspace 8
    bindsym $mod+9 workspace 9
    bindsym $mod+0 workspace 10
    # move focused container to workspace
    bindsym $mod+Shift+1 move container to workspace 1
    bindsym $mod+Shift+2 move container to workspace 2
    bindsym $mod+Shift+3 move container to workspace 3
    bindsym $mod+Shift+4 move container to workspace 4
    bindsym $mod+Shift+5 move container to workspace 5
    bindsym $mod+Shift+6 move container to workspace 6
    bindsym $mod+Shift+7 move container to workspace 7
    bindsym $mod+Shift+8 move container to workspace 8
    bindsym $mod+Shift+9 move container to workspace 9
    bindsym $mod+Shift+0 move container to workspace 10
    # Note: workspaces can have any name you want, not just numbers.
    # We just use 1-10 as the default.
#
# Layout stuff:
#
    # You can "split" the current object of your focus with
    # $mod+l or $mod+v, for horizontal and vertical splits
    # respectively.
    bindsym $mod+l splith
    bindsym $mod+v splitv

    # Switch the current container between different layout styles
    bindsym $mod+s layout stacking
    bindsym $mod+w layout tabbed
    bindsym $mod+y layout toggle split

    # Make the current focus fullscreen
    bindsym $mod+f fullscreen

    # Toggle the current focus between tiling and floating mode
    bindsym $mod+Shift+space floating toggle

    # Swap focus between the tiling area and the floating area
    bindsym $mod+space focus mode_toggle

    # move focus to the parent container
    bindsym $mod+a focus parent
#
# Scratchpad:
#
    # Sway has a "scratchpad", which is a bag of holding for windows.
    # You can send windows there and get them back later.

    # Move the currently focused window to the scratchpad
    bindsym $mod+Shift+minus move scratchpad

    # Show the next scratchpad window or hide the focused scratchpad window.
    # If there are multiple scratchpad windows, this command cycles through them.
    bindsym $mod+minus scratchpad show
#
# Resizing containers:
#
mode "resize" {
    # left will shrink the containers width
    # right will grow the containers width
    # up will shrink the containers height
    # down will grow the containers height
    bindsym $left resize shrink width 10px
    bindsym $down resize grow height 10px
    bindsym $up resize shrink height 10px
    bindsym $right resize grow width 10px

    # ditto, with arrow keys
    bindsym Left resize shrink width 10px
    bindsym Down resize grow height 10px
    bindsym Up resize shrink height 10px
    bindsym Right resize grow width 10px

    # return to default mode
    bindsym Return mode "default"
    bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"

#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
    position top

    # When the status_command prints a new line to stdout, swaybar updates.
    # The default just shows the current date and time.
    status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done

    colors {
        statusline #ffffff
        background #323232
        inactive_workspace #32323200 #32323200 #5c5c5c
    }
}

#bar {
#  swaybar_command waybar
#}

include /etc/sway/config.d/*
xwayland enable

Debug log:

/usr/bin/zsh -c 'GDK_BACKEND=x11 emacs '
2019-07-11 21:12:23 - [wlroots-0.6.0/xwayland/xwayland.c:91] WAYLAND_SOCKET=19 Xwayland :1 -rootless -terminate -listen 16 -listen 18 -wm 28
glamor: No eglstream capable devices found
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
> Internal error:   Could not resolve keysym XF86MonBrightnessCycle
> Internal error:   Could not resolve keysym XF86RotationLockToggle
Errors from xkbcomp are not fatal to the X server
2019-07-11 21:12:24 - [wlroots-0.6.0/types/wlr_relative_pointer_v1.c:173] relative_pointer_v1 manager bound to client 0x55a85e4db790
2019-07-11 21:12:24 - [wlroots-0.6.0/types/wlr_surface.c:609] New wlr_surface 0x55a85e627740 (res 0x55a85e627a60)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwayland.c:350] sent SIGUSR1 to process 3289
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwayland.c:228] Xserver is ready
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1527] xfixes version: 5.0
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (924)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (924)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:830] XCB_CREATE_NOTIFY (2097153)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:830] XCB_CREATE_NOTIFY (2097154)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (2097154)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:830] XCB_CREATE_NOTIFY (2097155)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (924)
2019-07-11 21:12:24 - [sway-1.1.1/sway/input/cursor.c:570] denying request to set cursor from unfocused client
2019-07-11 21:12:24 - [wlroots-0.6.0/types/wlr_relative_pointer_v1.c:151] relative_pointer_v1 0x55a85e62d370 created for client 0x55a85e4db790
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported maximum keycode 569, clipping.
>                   X11 cannot support keycodes above 255.
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
> Internal error:   Could not resolve keysym XF86MonBrightnessCycle
> Internal error:   Could not resolve keysym XF86RotationLockToggle
Errors from xkbcomp are not fatal to the X server
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1291] unhandled X11 event: MappingNotify (34)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1291] unhandled X11 event: MappingNotify (34)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (924)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:830] XCB_CREATE_NOTIFY (4194305)
2019-07-11 21:12:24 - [sway-1.1.1/sway/desktop/xwayland.c:590] New xwayland surface title='(null)' class='(null)'
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194305)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 34 (WM_COMMAND) for window 4194305
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194305)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 36 (WM_CLIENT_MACHINE) for window 4194305
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194305)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:391] XCB_ATOM_WM_CLASS: emacs Emacs
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194305)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 310 (WM_LOCALE_NAME) for window 4194305
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194305)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:479] NET_WM_PID 3326
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:830] XCB_CREATE_NOTIFY (4194623)
2019-07-11 21:12:24 - [sway-1.1.1/sway/desktop/xwayland.c:590] New xwayland surface title='(null)' class='(null)'
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194305)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:441] XCB_ATOM_WM_NAME: emacs
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194305)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 373 (_NET_WM_OPAQUE_REGION) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 291 (XdndAware) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 37 (WM_ICON_NAME) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 315 (_NET_WM_ICON) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:830] XCB_CREATE_NOTIFY (4194636)
2019-07-11 21:12:24 - [sway-1.1.1/sway/desktop/xwayland.c:584] New xwayland unmanaged surface
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 36 (WM_CLIENT_MACHINE) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 310 (WM_LOCALE_NAME) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:479] NET_WM_PID 3326
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1206] XCB_CLIENT_MESSAGE (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1206] XCB_CLIENT_MESSAGE (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 315 (_NET_WM_ICON) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:607] WM_NORMAL_HINTS (18)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:876] XCB_CONFIGURE_REQUEST (4194623) [672x639+0,0]
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1206] XCB_CLIENT_MESSAGE (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 376 (_GTK_THEME_VARIANT) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:555] WM_HINTS (9)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:922] XCB_MAP_REQUEST (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:922] XCB_MAP_REQUEST (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1206] XCB_CLIENT_MESSAGE (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 271 (WM_STATE) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:941] XCB_MAP_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1206] XCB_CLIENT_MESSAGE (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 271 (WM_STATE) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/types/wlr_surface.c:609] New wlr_surface 0x55a85e684bd0 (res 0x55a85e683880)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1375] New xwayland surface: 0x55a85e684bd0
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:391] XCB_ATOM_WM_CLASS: emacs Emacs
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:441] XCB_ATOM_WM_NAME: emacs@archlinux
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:525] WM_PROTOCOLS (4)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:555] WM_HINTS (9)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:607] WM_NORMAL_HINTS (18)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:502] NET_WM_WINDOW_TYPE (1)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:441] XCB_ATOM_WM_NAME: emacs@archlinux
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:479] NET_WM_PID 3326
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 373 (_NET_WM_OPAQUE_REGION) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/selection/selection.c:118] not handling selection events: no seat assigned to xwayland
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:830] XCB_CREATE_NOTIFY (4194665)
2019-07-11 21:12:24 - [sway-1.1.1/sway/desktop/xwayland.c:584] New xwayland unmanaged surface
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/root.c:226] Looking up workspace for pid 3326
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/root.c:235] found pid_workspace for pid 3326, workspace 1
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/arrange.c:190] Usable area for ws: 679x692@0,24
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/arrange.c:221] Arranging workspace '1' at 0.000000, 24.000000
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/arrange.c:38] Arranging 0x7ffc298592e0 horizontally
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/arrange.c:190] Usable area for ws: 679x692@0,24
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/arrange.c:221] Arranging workspace '1' at 0.000000, 24.000000
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/arrange.c:38] Arranging 0x7ffc29859370 horizontally
2019-07-11 21:12:24 - [sway-1.1.1/sway/desktop/transaction.c:412] Transaction 0x55a85e7c1950 committing with 3 instructions
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 291 (XdndAware) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 381 (_MOTIF_DRAG_RECEIVER_INFO) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (924)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:1291] unhandled X11 event: FocusOut (10)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (924)
2019-07-11 21:12:24 - [sway-1.1.1/sway/desktop/transaction.c:489] Transaction 0x55a85e7c1950 is ready
2019-07-11 21:12:24 - [sway-1.1.1/sway/desktop/transaction.c:280] Applying transaction 0x55a85e7c1950
2019-07-11 21:12:24 - [sway-1.1.1/sway/tree/container.c:1148] Container 0x55a85e685e40 entered output 0x55a85e56c960
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:723] unhandled X11 property 373 (_NET_WM_OPAQUE_REGION) for window 4194623
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:967] XCB_PROPERTY_NOTIFY (4194623)
2019-07-11 21:12:24 - [wlroots-0.6.0/xwayland/xwm.c:607] WM_NORMAL_HINTS (18)
2019-07-11 21:12:26 - [wlroots-0.6.0/xwayland/xwm.c:1291] unhandled X11 event: MappingNotify (34)
2019-07-11 21:12:26 - [wlroots-0.6.0/xwayland/xwm.c:1291] unhandled X11 event: MappingNotify (34)
2019-07-11 21:12:31 - [GLES2] FS SIMD8 shader: 15 inst, 0 loops, 308 cycles, 0:0 spills:fills, Promoted 0 constants, compacted 240 to 176 bytes.
2019-07-11 21:12:31 - [GLES2] FS SIMD16 shader: 18 inst, 0 loops, 326 cycles, 0:0 spills:fills, Promoted 0 constants, compacted 288 to 224 bytes.
2019-07-11 21:12:31 - [EGL] eglSwapInterval: eglSwapInterval
2019-07-11 21:12:31 - [EGL] eglSwapBuffers: eglSwapBuffers
2019-07-11 21:12:31 - [wlroots-0.6.0/render/egl.c:400] eglSwapBuffers failed
Connection lost to X server ':1'
When compiled with GTK, Emacs cannot recover from X disconnects.
This is a GTK bug: https://gitlab.gnome.org/GNOME/gtk/issues/221
For details, see etc/PROBLEMS.

Backtrace:
emacs[0x51016f]
emacs[0x4f5502]
emacs[0x510224]
emacs[0x4c1282]
emacs[0x4c1398]
/usr/lib/libX11.so.6(_XIOError+0x4e)[0x7fcb1aa2c5ae]
/usr/lib/libX11.so.6(_XEventsQueued+0x7f)[0x7fcb1aa29ddf]
/usr/lib/libX11.so.6(XPending+0x58)[0x7fcb1aa1b978]
/usr/lib/libgdk-3.so.0(+0x41810)[0x7fcb1b252810]
/usr/lib/libglib-2.0.so.0(g_main_context_prepare+0x1d0)[0x7fcb1adb9360]
/usr/lib/libglib-2.0.so.0(+0x6a9a6)[0x7fcb1adb99a6]
/usr/lib/libglib-2.0.so.0(g_main_context_pending+0x2a)[0x7fcb1adb9bfa]
/usr/lib/libgtk-3.so.0(gtk_events_pending+0x10)[0x7fcb1b58ee10]
2019-07-11 21:12:32 - emacs[0x4c1c89]
[sway-1.1.1/common/ipc-client.c:88] Unable to receive IPC responseemacs[0x4fc9d9]

emacs[0x4fd0a5]
emacs[0x5b5956]
emacs[0x41fca7]
emacs[0x501947]
emacs[0x503178]
emacs[0x504894]
emacs[0x56cd4f]
emacs[0x4f58e5]
emacs[0x56ccbe]
emacs[0x4f587d]
emacs[0x4fab38]
emacs[0x4fae78]
emacs[0x415cab]
/usr/lib/libc.so.6(__libc_start_main+0xf3)[0x7fcb18ba9ee3]
emacs[0x416a5e]
date: write error: Broken pipe

And my sway version is 1.0

nolanwrightdev commented 5 years ago

After reviewing the issue further, I don't believe it is caused by sway.