Github messages for voidlinux
 help / color / mirror / Atom feed
From: kruceter <kruceter@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] bspwm: patch windows sometimes not appearing
Date: Sun, 01 Jan 2023 05:14:13 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41389@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

There is a new pull request by kruceter against master on the void-packages repository

https://github.com/kruceter/void-packages bspwm
https://github.com/void-linux/void-packages/pull/41389

bspwm: patch windows sometimes not appearing
Apparently gtk-based software used to be affected by this bug.

I use this window manager as my "daily driver" with the upstream patch applied.

The issue at hand is gone far, far away.

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl

A patch file from https://github.com/void-linux/void-packages/pull/41389.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bspwm-41389.patch --]
[-- Type: text/x-diff, Size: 2123 bytes --]

From 95282842e07096da1816170b5c2030bc8c1d281b Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Thu, 29 Dec 2022 08:44:05 +0300
Subject: [PATCH] bspwm: patch windows sometimes not appearing

Apparently gtk-based software used to be affected by this bug.
---
 .../patches/fix-windows-not-appearing.patch   | 32 +++++++++++++++++++
 srcpkgs/bspwm/template                        |  2 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/bspwm/patches/fix-windows-not-appearing.patch

diff --git a/srcpkgs/bspwm/patches/fix-windows-not-appearing.patch b/srcpkgs/bspwm/patches/fix-windows-not-appearing.patch
new file mode 100644
index 000000000000..1dbd87c46ba0
--- /dev/null
+++ b/srcpkgs/bspwm/patches/fix-windows-not-appearing.patch
@@ -0,0 +1,32 @@
+https://github.com/baskerville/bspwm/commit/1560df35be303807052c235634eb8d59415c37ff
+
+From 1560df35be303807052c235634eb8d59415c37ff Mon Sep 17 00:00:00 2001
+From: David Hoppenbrouwers <david@salt-inc.org>
+Date: Tue, 25 Jan 2022 00:09:42 +0100
+Subject: [PATCH] Fix windows sometimes not appearing
+
+Fixes #935.
+---
+ src/bspwm.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/bspwm.c b/src/bspwm.c
+index 9c6be76c..8b9b5d14 100644
+--- a/src/bspwm.c
++++ b/src/bspwm.c
+@@ -36,6 +36,7 @@
+ #include <stdbool.h>
+ #include <string.h>
+ #include <xcb/xinerama.h>
++#include <xcb/xcb_aux.h>
+ #include "types.h"
+ #include "desktop.h"
+ #include "monitor.h"
+@@ -248,6 +249,7 @@ int main(int argc, char *argv[])
+ 			}
+ 
+ 			if (FD_ISSET(dpy_fd, &descriptors)) {
++				xcb_aux_sync(dpy);
+ 				while ((event = xcb_poll_for_event(dpy)) != NULL) {
+ 					handle_event(event);
+ 					free(event);
diff --git a/srcpkgs/bspwm/template b/srcpkgs/bspwm/template
index c8092a46b2da..f257a820b9ae 100644
--- a/srcpkgs/bspwm/template
+++ b/srcpkgs/bspwm/template
@@ -1,7 +1,7 @@
 # Template file for 'bspwm'
 pkgname=bspwm
 version=0.9.10
-revision=1
+revision=2
 build_style=gnu-makefile
 makedepends="xcb-util-wm-devel xcb-util-keysyms-devel"
 short_desc="Tiling window manager based on binary space partitioning"

             reply	other threads:[~2023-01-01  4:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-01  4:14 kruceter [this message]
2023-01-01  5:44 ` classabbyamp
2023-01-01  6:01 ` [PR PATCH] [Updated] " kruceter
2023-01-01  6:06 ` kruceter
2023-01-06 12:32 ` [PR PATCH] [Closed]: " kruceter
2023-01-11 21:03 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41389@inbox.vuxu.org \
    --to=kruceter@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).