Skip to content
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

linux/x11: Resize on GTK_EDGE_CONSTRAINTS atom #13833

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

mrnugget
Copy link
Member

@mrnugget mrnugget commented Jul 4, 2024

With the new window decorations resizing was really laggy on my X11 machine.

Before:

  • Click on window border (hitbox doesn't work properly, but that's another issue)
  • Drag and resize
  • 4-5s nothing happens
  • Window is resized

After:

  • Click on window border
  • Drag and resize
  • Window is resized

I'm still not 100% sure on why this happens on my machine and not Conrad's/Mikayla's, but seems like that GTK_EDGE_CONSTRAINTS atom is sent when resizing.

The other thing that I can't explain is that we get a ConfigureNotify when resizing, with the right size, but maybe not often enough?

Anyway, for now we'll go with this.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jul 4, 2024
@mrnugget
Copy link
Member Author

mrnugget commented Jul 4, 2024

Ah. It seems like if we don't query the _NET_WM_STATE (or the atom name! or probably anything else!) on the connection then the connection gets stuck.

@mrnugget mrnugget merged commit c8b1062 into main Jul 4, 2024
9 checks passed
@mrnugget mrnugget deleted the linux-x11-gtk-edge-constraints branch July 4, 2024 16:29
ConradIrwin pushed a commit that referenced this pull request Jul 9, 2024
With the new window decorations resizing was _really_ laggy on my X11
machine.

Before:
- Click on window border (hitbox doesn't work properly, but that's
another issue)
- Drag and resize
- 4-5s nothing happens
- Window is resized

After:
- Click on window border
- Drag and resize
- Window is resized

I'm still not 100% sure on why this happens on my machine and not
Conrad's/Mikayla's, but seems like that GTK_EDGE_CONSTRAINTS atom is
sent when resizing.

The other thing that I can't explain is that we get a `ConfigureNotify`
when resizing, with the right size, but maybe not often enough?

Anyway, for now we'll go with this.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant