New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEGFAULT on GNOME 3.16 Wayland #150

Closed
bugabinga opened this Issue May 16, 2015 · 9 comments

Comments

Projects
None yet
6 participants
@bugabinga

bugabinga commented May 16, 2015

When starting tilda on Arch Linux with Gnome 3.16 on Wayland, the application segfaults.

http://ix.io/iB1

I can provide the core dump if necessary.

@lanoxx

This comment has been minimized.

Show comment
Hide comment
@lanoxx

lanoxx May 17, 2015

Owner

Tilda does not work with wayland.

Owner

lanoxx commented May 17, 2015

Tilda does not work with wayland.

@lanoxx lanoxx added the wontfix label Jun 10, 2015

@lanoxx

This comment has been minimized.

Show comment
Hide comment
@lanoxx

lanoxx Jun 10, 2015

Owner

Im closing this for now, as I dont think its likely we port tilda to wayland in the near future.

There are two things blocking this:

  1. The global hotkey to pull down tilda depends directly on X11, we need to replace it with something that is independent to X11. Im thinking maybe this can be done with libinput, but I really have no idea and also no time to look into this.
  2. Wayland does not allow windows to globally reposition themselves as there are no global window coordinates. So the current way tilda positions itself on the screen will not work on wayland. We need to find an alternative. This probably means that tilda needs to become a wayland shell plugin or something similar. I am not familiar with wayland development so I cant really say whats the best way to solve this.

If someone fells up to this, go and write a patch and I will be happy to review/merge it into tilda as long as it does not conflict with tilda running on X11. A compile time option would be nice.

If anyone wants to work on this please reopen.

Owner

lanoxx commented Jun 10, 2015

Im closing this for now, as I dont think its likely we port tilda to wayland in the near future.

There are two things blocking this:

  1. The global hotkey to pull down tilda depends directly on X11, we need to replace it with something that is independent to X11. Im thinking maybe this can be done with libinput, but I really have no idea and also no time to look into this.
  2. Wayland does not allow windows to globally reposition themselves as there are no global window coordinates. So the current way tilda positions itself on the screen will not work on wayland. We need to find an alternative. This probably means that tilda needs to become a wayland shell plugin or something similar. I am not familiar with wayland development so I cant really say whats the best way to solve this.

If someone fells up to this, go and write a patch and I will be happy to review/merge it into tilda as long as it does not conflict with tilda running on X11. A compile time option would be nice.

If anyone wants to work on this please reopen.

@johannesjo

This comment has been minimized.

Show comment
Hide comment
@johannesjo

johannesjo Oct 22, 2017

@lanoxx I'm not sure what what you mean by "Wayland does not allow windows to globally reposition themselves as there are no global window". With lwsm which uses the x11 wrapper for node it's no problem to position windows wherever I want even with Wayland. Unfortunately I know next to nothing about C so I don't really feel comfortable developing a patch for this.

johannesjo commented Oct 22, 2017

@lanoxx I'm not sure what what you mean by "Wayland does not allow windows to globally reposition themselves as there are no global window". With lwsm which uses the x11 wrapper for node it's no problem to position windows wherever I want even with Wayland. Unfortunately I know next to nothing about C so I don't really feel comfortable developing a patch for this.

@lanoxx

This comment has been minimized.

Show comment
Hide comment
@lanoxx

lanoxx Oct 24, 2017

Owner

What I mean by this is that Xorg and Wayland have two different philosophies when it comes to window management. On Xorg every application knows where it is positioned on the screen and can reposition itself using programming apis that are provided by X11. GTK has nice wrapper functions for these (e.g. gtk_window_move ). Tilda is using these APIs to implement the positioning of the main tilda window such that it is located at some edge of the screen (usually the top edge) and that you see some nice animation when tilda slides down (if animations are enabled).

A second dependency that tilda has on Xorg is the capturing of the global hotkey such that you can use some key combination to pull down tilda even when tilda is hidden and does not have the input focus of the keyboard or mouse. This is done using the XGrabKey functionality of Xorg.

On Wayland as far as I know applications do not have access to this kind of API. So I do not know how to reposition the tilda window. In addition the functionality to receive global key combinations will need to be rewritten to work both for wayland and Xorg.

Owner

lanoxx commented Oct 24, 2017

What I mean by this is that Xorg and Wayland have two different philosophies when it comes to window management. On Xorg every application knows where it is positioned on the screen and can reposition itself using programming apis that are provided by X11. GTK has nice wrapper functions for these (e.g. gtk_window_move ). Tilda is using these APIs to implement the positioning of the main tilda window such that it is located at some edge of the screen (usually the top edge) and that you see some nice animation when tilda slides down (if animations are enabled).

A second dependency that tilda has on Xorg is the capturing of the global hotkey such that you can use some key combination to pull down tilda even when tilda is hidden and does not have the input focus of the keyboard or mouse. This is done using the XGrabKey functionality of Xorg.

On Wayland as far as I know applications do not have access to this kind of API. So I do not know how to reposition the tilda window. In addition the functionality to receive global key combinations will need to be rewritten to work both for wayland and Xorg.

@johannesjo

This comment has been minimized.

Show comment
Hide comment
@johannesjo

johannesjo Oct 24, 2017

Thank you very much for explaining! I'm new to all this, but might it be a solution to use standard X11 and wrap the application via XWayland?

johannesjo commented Oct 24, 2017

Thank you very much for explaining! I'm new to all this, but might it be a solution to use standard X11 and wrap the application via XWayland?

@lanoxx

This comment has been minimized.

Show comment
Hide comment
@lanoxx

lanoxx Oct 24, 2017

Owner

Possibly, as discussed in #314 guake seems to have found a solution, if we can apply that to tilda then maybe it can be fixed.

Owner

lanoxx commented Oct 24, 2017

Possibly, as discussed in #314 guake seems to have found a solution, if we can apply that to tilda then maybe it can be fixed.

@valentt

This comment has been minimized.

Show comment
Hide comment
@valentt

valentt Jan 4, 2018

Contributor

Got tilda working on Wayland! Just change your launcher to use this command line:
env GDK_BACKEND=x11 tilda

Contributor

valentt commented Jan 4, 2018

Got tilda working on Wayland! Just change your launcher to use this command line:
env GDK_BACKEND=x11 tilda

@opensamba

This comment has been minimized.

Show comment
Hide comment
@opensamba

opensamba Apr 13, 2018

I think would be useful for the tilda user know this immediately when they run tilda on the terminal
Maybe instead of this error

$ tilda
zsh: segmentation fault (core dumped)  tilda

A better way to inform the users would to have an error like:

$ tilda
Error: tilda doesn't work on Wayland, see issue #150

opensamba commented Apr 13, 2018

I think would be useful for the tilda user know this immediately when they run tilda on the terminal
Maybe instead of this error

$ tilda
zsh: segmentation fault (core dumped)  tilda

A better way to inform the users would to have an error like:

$ tilda
Error: tilda doesn't work on Wayland, see issue #150
@elektronik2k5

This comment has been minimized.

Show comment
Hide comment
@elektronik2k5

elektronik2k5 Apr 14, 2018

@opensamba, exactly! + Link to issue (instead of only number).

elektronik2k5 commented Apr 14, 2018

@opensamba, exactly! + Link to issue (instead of only number).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment