You are not logged in.

#1 2018-02-02 09:25:48

sant527
Member
Registered: 2009-06-21
Posts: 273

awesome not resizing with Xephyr

Awesome is not resizing with Xephry So I posted the question on github of awesome. https://github.com/awesomeWM/awesome/is … 1453547395. The below is the content of the question.

$ awesome --version
awesome v4.0 (Harder, Better, Faster, Stronger)
 • Compiled against Lua 5.3.3 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • RandR 1.5 support: ✔
 • LGI version: 0.9.1
$ Xephyr -br -ac -noreset -host-cursor -resizeable :1
$ DISPLAY=:1 awesome
2018-02-01 20:02:17 /usr/share/awesome/lib/beautiful/xresources.lua:84: W: Failed to get xrdb value 'Xft.dpi'.
stack traceback:
	/usr/share/awesome/lib/beautiful/init.lua:114: in upvalue 'load_font'
	/usr/share/awesome/lib/beautiful/init.lua:133: in local 'set_font'
	/usr/share/awesome/lib/beautiful/init.lua:213: in main chunk
	[C]: in function 'require'
	/usr/share/awesome/lib/beautiful.lua:5: in main chunk
	[C]: in function 'require'
	/usr/share/awesome/lib/awful/tag.lua:12: in main chunk
	[C]: in function 'require'
	/usr/share/awesome/lib/awful/layout/init.lua:20: in main chunk
	[C]: in function 'require'
	/usr/share/awesome/lib/awful/init.lua:41: in main chunk
	[C]: in function 'require'
	/home/simha/.config/awesome/rc.lua:3: in main chunk
2018-02-01 20:02:17 /usr/share/awesome/lib/beautiful/xresources.lua:54: W: Failed to get xrdb value 'background'.
stack traceback:
	/usr/share/awesome/lib/awful/hotkeys_popup/widget.lua:107: in function 'awful.hotkeys_popup.widget.new'
	/usr/share/awesome/lib/awful/hotkeys_popup/widget.lua:460: in upvalue 'get_default_widget'
	/usr/share/awesome/lib/awful/hotkeys_popup/widget.lua:477: in function 'awful.hotkeys_popup.widget.add_hotkeys'
	/usr/share/awesome/lib/awful/hotkeys_popup/keys/vim.lua:171: in main chunk
	[C]: in function 'require'
	/usr/share/awesome/lib/awful/hotkeys_popup/keys/init.lua:11: in main chunk
	[C]: in function 'require'
	/usr/share/awesome/lib/awful/hotkeys_popup/init.lua:12: in main chunk
	[C]: in function 'require'
	/home/simha/.config/awesome/rc.lua:12: in main chunk
2018-02-01 20:02:17 W: beautiful: can't get colorscheme from xrdb (using fallback).
2018-02-01 20:02:17 W: awful: function timer is deprecated, see gears.timer.
stack traceback:
	/usr/share/awesome/lib/awful/util.lua:45: in function 'awful.util.deprecate'
	/usr/share/awesome/lib/awful/init.lua:13: in function 'timer'
	/home/simha/.config/awesome/rc.lua:29: in main chunk
2018-02-01 20:02:17 W: awful: function timer is deprecated, see gears.timer.
stack traceback:
	/usr/share/awesome/lib/awful/util.lua:45: in function 'awful.util.deprecate'
	/usr/share/awesome/lib/awful/init.lua:13: in function 'timer'
	/home/simha/.config/awesome/rc.lua:646: in main chunk

https://user-images.githubusercontent.c … b7d239.png



The answer i got was

psychon wrote:

Please report this as a bug to the X.org developers (and leave a link here). What's happening is that the RANDR extension still reports the previous size of the monitors. If I hardcode the use of CRTCs instead of MONITORS, things start working. Sadly, /usr/bin/xrandr apparently cannot print out the MONITOR information....
In case you are building awesome yourself:

diff --git a/objects/screen.c b/objects/screen.c
index d0746c3f..6bbbe210 100644
--- a/objects/screen.c
+++ b/objects/screen.c
@@ -409,7 +409,7 @@ screen_scan_randr_crtcs(lua_State *L, screen_array_t *screens)
 
             p_delete(&output_info_r);
 
-            if (A_STREQ(name, "default"))
+            if (A_STREQ(name, "default") && 0)
             {
                 /* non RandR 1.2+ X driver don't return any usable multihead
                  * data. I'm looking at you, nvidia binary blob!
@@ -645,7 +645,7 @@ screen_refresh(void)
     bool list_changed = false;
 
     screen_array_init(&new_screens);
-    if (globalconf.have_randr_15)
+    if (globalconf.have_randr_15 && 0)
         screen_scan_randr_monitors(L, &new_screens);
     else
         screen_scan_randr_crtcs(L, &new_screens);

So as per the answer  how can i build awesome with the above patch in archlinux


Mod Edit - Replaced oversized images with links.
CoC - Pasting pictures and code

Last edited by Slithery (2018-02-02 15:30:21)

Offline

#2 2018-02-02 09:39:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,040

Re: awesome not resizing with Xephyr

Just to be sure: you're posting a question regarding an issue that you got resolved upstream, an oversized image in violation of the forum rules.
But your actual question is: "How can I build a patched pacman package?"

??

Online

Board footer

Powered by FluxBB