Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] bspwm: patch windows sometimes not appearing
@ 2023-01-01  4:14 kruceter
  2023-01-01  5:44 ` classabbyamp
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kruceter @ 2023-01-01  4:14 UTC (permalink / raw)
  To: ml

[-- 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"

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-11 21:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-01  4:14 [PR PATCH] bspwm: patch windows sometimes not appearing kruceter
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

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).