Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Window size stored after restart and I can't make window be smaller that that size #160

Closed
unclechu opened this issue Dec 13, 2017 · 1 comment

Comments

@unclechu
Copy link

System:

  • Nheko commit/version: 6aa635e
  • Operating System: Fedora 25 Workstation
  • Qt version: 5.7.1
  • C++ compiler:
    $ g++ --version
    g++ (GCC) 6.4.1 20170727 (Red Hat 6.4.1-1)
    Copyright (C) 2017 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
  • Desktop Environment: i3wm
    $ i3 --version
    i3 version 4.14.1 (2017-09-24) © 2009 Michael Stapelberg and contributors
    

Actual behavior

I guess when I quite the application it stores last window size in ~/.config/nheko/nheko.conf, an example:

$ cat ~/.config/nheko/nheko.conf | grep -F '[window]' -A2
[window]
height=1037
width=1916

And after I start application again I can increase this size but cannot decrease it. Maybe this feature makes sense for non-tiling window managers but at least we should be able to make window smaller, am I right? Maybe it is related only to tiling window managers or at least to i3?

Expected behavior

Being able to decrease window size.

P.S. Now if I want to decrease window size I just removing [window] section from config before start nheko.

@unclechu unclechu changed the title Window size stored after restart and I can't resize window less that that size Window size stored after restart and I can't make window be smaller that that size Dec 13, 2017
@unclechu
Copy link
Author

My own temporary fix for this:

#!/usr/bin/env bash
set -e

perl -p -i -e \
	'chomp($_ = do {local $/; <>}); s/\n\[window\]\nheight=\d+\nwidth=\d+//' \
	~/.config/nheko/nheko.conf

nheko-git-2017-12-12-6aa635e

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant